summaryrefslogtreecommitdiffstats
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-08-17 05:38:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-08-17 05:38:44 +0000
commit90d2460cf0e644e82650763c502332e5adad27e7 (patch)
tree03cebde5b43b6267a3b50549dc0fbbafd1a13f4f /source3/smbd/reply.c
parent8cceea0f3f75aa3b12612e23ac6f80bae1e7e37f (diff)
downloadsamba-90d2460cf0e644e82650763c502332e5adad27e7.tar.gz
samba-90d2460cf0e644e82650763c502332e5adad27e7.tar.xz
samba-90d2460cf0e644e82650763c502332e5adad27e7.zip
One less getpwnam() call...
Andrew Bartlett (This used to be commit 204da7ba96b0c562bab5e5536728a0378077bdc7)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 3ba1d4eea94..47a363ae8d1 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -567,6 +567,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
int sess_vuid;
gid_t gid;
uid_t uid;
+ char* full_name;
int smb_bufsize;
int smb_apasslen = 0;
pstring smb_apasswd;
@@ -879,6 +880,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
}
gid = pw->pw_gid;
uid = pw->pw_uid;
+ full_name = pw->pw_gecos;
}
if (guest)
@@ -887,7 +889,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
/* register the name and uid as being validated, so further connections
to a uid can get through without a password, on the same VC */
- sess_vuid = register_vuid(uid,gid,user,current_user_info.smb_name,domain,guest);
+ sess_vuid = register_vuid(uid,gid,user,current_user_info.smb_name,domain,guest, full_name);
if (sess_vuid == -1) {
return(ERROR(ERRDOS,ERRnoaccess));