[PATCH] pdbedit.c: the exit code should be 0 when '--policies-reset' is success

Peng Haitao penght at cn.fujitsu.com
Wed May 22 02:47:19 MDT 2013


When '--policies-reset' is success, the exit code should be 0.

Signed-off-by: Peng Haitao <penght at cn.fujitsu.com>
---
 source3/utils/pdbedit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index 908f0ba..8e3a5a5 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -1181,7 +1181,7 @@ int main (int argc, char **argv)
 	}
 
 	if (reset_account_policies) {
-		if (!reinit_account_policies()) {
+		if (reinit_account_policies()) {
 			exit(1);
 		}
 
-- 
1.8.1.4



More information about the samba-technical mailing list