mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
testparm: correctly check for empty lp_passwd_prog().
Michael
(This used to be commit 0567f50698
)
This commit is contained in:
parent
010669351a
commit
7ec398b188
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user