mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
Fix SIGSEGV on error message when trying to add a user to smbpasswd file without a unix account.
(This used to be commit 2fdd601f2efaf3515f0e4c30fa176651eb4bb387)
This commit is contained in:
parent
b9998ace1f
commit
37a9d2a9c2
@ -610,7 +610,7 @@ static BOOL add_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, str
|
||||
/* Account not in /etc/passwd hack!!! */
|
||||
if (!newpwd->smb_userid_set) {
|
||||
if (!smbpasswd_state->permit_non_unix_accounts) {
|
||||
DEBUG(0, ("add_smbfilepwd_entry: cannot add account %s without unix identity\n", pwd->smb_name));
|
||||
DEBUG(0, ("add_smbfilepwd_entry: cannot add account %s without unix identity\n", newpwd->smb_name));
|
||||
endsmbfilepwent(fp, &(smbpasswd_state->pw_file_lock_depth));
|
||||
return False;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user