summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c
index f0b3ef68cd..2449eec1f0 100644
--- a/source3/passdb/pdb_smbpasswd.c
+++ b/source3/passdb/pdb_smbpasswd.c
@@ -1269,7 +1269,7 @@ static BOOL build_sam_account (SAM_ACCOUNT *sam_pass,
if (samlogon_user[strlen(samlogon_user)-1] != '$')
{
pstring str;
- gid_t gid;
+ gid_t gid = getegid();
sam_logon_in_ssb = True;