svn commit: samba r1704 - trunk/source/utils

mimir at samba.org mimir at samba.org
Tue Aug 10 21:05:08 GMT 2004


Author: mimir
Date: 2004-08-10 21:05:08 +0000 (Tue, 10 Aug 2004)
New Revision: 1704
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1704&nolog=1
Log:
Explicitly zero flags field (ie. turn it off) if no flags have been
specified in command line.


rafal


Modified:
   trunk/source/utils/pdbedit.c

Changeset:
Modified: trunk/source/utils/pdbedit.c
===================================================================
--- trunk/source/utils/pdbedit.c	2004-08-10 20:55:42 UTC (rev 1703)
+++ trunk/source/utils/pdbedit.c	2004-08-10 21:05:08 UTC (rev 1704)
@@ -837,9 +837,7 @@
 	}
 
 	/* flags */
-	if (flag) {
-		trust.private.flags = trustpw_flag(flag);
-	}
+	trust.private.flags = (flag) ? trustpw_flag(flag) : 0;
 
 	/* password */
 	givenpass = getpass("password (type Enter to leave it untouched):");



More information about the samba-cvs mailing list