summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-18 15:49:31 +0100
committerMichael Adam <obnox@samba.org>2008-03-18 15:52:45 +0100
commit7ec398b188df4655ae10884ec949e740a05b375f (patch)
tree7c4119051d64f2c4f514fbb8a20f7c803a8e3738 /source3
parent010669351a0276ea2252f763dcabce725770f0b6 (diff)
downloadsamba-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')
-rw-r--r--source3/utils/testparm.c4
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;