diff options
author | Michael Adam <obnox@samba.org> | 2008-03-18 15:49:31 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-18 15:52:45 +0100 |
commit | 7ec398b188df4655ae10884ec949e740a05b375f (patch) | |
tree | 7c4119051d64f2c4f514fbb8a20f7c803a8e3738 /source3/utils | |
parent | 010669351a0276ea2252f763dcabce725770f0b6 (diff) | |
download | samba-7ec398b188df4655ae10884ec949e740a05b375f.tar.gz samba-7ec398b188df4655ae10884ec949e740a05b375f.tar.bz2 samba-7ec398b188df4655ae10884ec949e740a05b375f.zip |
testparm: correctly check for empty lp_passwd_prog().
Michael
(This used to be commit 0567f506986746173d67172cb610c10bacf0ceb9)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/testparm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 83143c1001..d409ff992d 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -109,7 +109,9 @@ to a valid password server.\n", sec_setting ); if (!lp_pam_password_change()) { #endif - if(lp_passwd_program() == NULL) { + if((lp_passwd_program() == NULL) || + (strlen(lp_passwd_program()) == 0)) + { fprintf( stderr, "ERROR: the 'unix password sync' parameter is set and there is no valid 'passwd program' \ parameter.\n" ); ret = 1; |