svn commit: samba r2333 - in branches/SAMBA_3_0/source/smbd: .

idra at samba.org idra at samba.org
Tue Sep 14 01:11:09 GMT 2004


Author: idra
Date: 2004-09-14 01:11:01 +0000 (Tue, 14 Sep 2004)
New Revision: 2333

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/smbd&rev=2333&nolog=1

Log:

check the script is not a 0 lenght string


Modified:
   branches/SAMBA_3_0/source/smbd/chgpasswd.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/chgpasswd.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/chgpasswd.c	2004-09-14 01:10:31 UTC (rev 2332)
+++ branches/SAMBA_3_0/source/smbd/chgpasswd.c	2004-09-14 01:11:01 UTC (rev 2333)
@@ -1047,7 +1047,7 @@
 	}
 
 	/* Use external script to check password complexity */
-	if (lp_check_password_script()) {
+	if (lp_check_password_script() && *(lp_check_password_script())) {
 		int check_ret;
 
 		check_ret = smbrunsecret(lp_check_password_script(), new_passwd);



More information about the samba-cvs mailing list