From 37a9d2a9c2fe00094bd1788c9b572d395e1fa6e7 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Wed, 6 Mar 2002 19:14:37 +0000 Subject: Fix SIGSEGV on error message when trying to add a user to smbpasswd file without a unix account. (This used to be commit 2fdd601f2efaf3515f0e4c30fa176651eb4bb387) --- source3/passdb/pdb_smbpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c index e32af604fd..78c1a91d48 100644 --- a/source3/passdb/pdb_smbpasswd.c +++ b/source3/passdb/pdb_smbpasswd.c @@ -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; } -- cgit