summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-06-21 07:54:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-06-21 07:54:03 +0000
commit3f5dc144578cfaa58e227177c780d4261c9242d2 (patch)
tree749d4a4b3de941b27b26060338e8ea5cc93d14c6
parent93bcb9963bef53b91a0b16c6389cefdb7bea2b0e (diff)
downloadsamba-3f5dc144578cfaa58e227177c780d4261c9242d2.tar.gz
samba-3f5dc144578cfaa58e227177c780d4261c9242d2.tar.bz2
samba-3f5dc144578cfaa58e227177c780d4261c9242d2.zip
Always initialize.
(This used to be commit 75081860af5ace873f53c361ec34d029b7864ff7)
-rw-r--r--source3/smbd/service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 31bb343474..11659f2870 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -366,6 +366,8 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
}
fstrcpy(user,pass->pw_name);
conn->force_user = True;
+ conn->uid = pass->pw_uid;
+ conn->gid = pass->pw_gid;
string_set(&conn->user,pass->pw_name);
passwd_free(&pass);
DEBUG(3,("Guest only user %s\n",user));