When '--policies-reset' is success, the exit code should be 0.
authorPeng Haitao <penght@cn.fujitsu.com>
Wed, 22 May 2013 21:02:29 +0000 (14:02 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 23 May 2013 00:00:41 +0000 (17:00 -0700)
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/pdbedit.c

index 908f0ba0afed40f345f4e2b248222376d9a06f71..8e3a5a514bd80d5a04ff28706d45fbf6960e10a5 100644 (file)
@@ -1181,7 +1181,7 @@ int main (int argc, char **argv)
        }
 
        if (reset_account_policies) {
-               if (!reinit_account_policies()) {
+               if (reinit_account_policies()) {
                        exit(1);
                }