git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0106693
)
testparm: correctly check for empty lp_passwd_prog().
author
Michael Adam
<obnox@samba.org>
Tue, 18 Mar 2008 14:49:31 +0000
(15:49 +0100)
committer
Michael Adam
<obnox@samba.org>
Tue, 18 Mar 2008 14:52:45 +0000
(15:52 +0100)
Michael
(This used to be commit
0567f506986746173d67172cb610c10bacf0ceb9
)
source3/utils/testparm.c
patch
|
blob
|
history
diff --git
a/source3/utils/testparm.c
b/source3/utils/testparm.c
index 83143c1001e1c35f5b3fbbc7d798a00c850b6acb..d409ff992d73b75b84d402dc4519eb26d53372e7 100644
(file)
--- 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;