From 7d93eb3483029c9edd2c7b6361d514a7a3ec4e94 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Aug 2000 20:45:00 +0000 Subject: smbd/password.c: Fixed typo in Tim's new code that caused insure overrun error. smbd/reply.c: Fixed lowercasing UNIX character set problem. Jeremy. (This used to be commit 2b6e3ed7a6447d40d9dd7e9b5c286b1aabe4730d) --- source3/smbd/password.c | 1 - source3/smbd/reply.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbd/password.c b/source3/smbd/password.c index baa2823732..9e59815e52 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -203,7 +203,6 @@ NT_USER_TOKEN *create_nt_token(uid_t uid, gid_t gid, int ngroups, gid_t *groups) psids = token->user_sids; token->num_sids = 2; - token->num_sids = ngroups + 2; uid_to_sid( &psids[0], uid); gid_to_sid( &psids[1], gid); diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 00697c999a..00e6f44dd0 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -671,6 +671,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int * Incoming user is in DOS codepage format. Convert * to UNIX. */ + strlower(user); dos_to_unix(user,True); if (!doencrypt && (lp_security() != SEC_SERVER)) { @@ -786,6 +787,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int * Incoming user is in DOS codepage format. Convert * to UNIX. */ + strlower(user); dos_to_unix(user,True); domain = p; @@ -828,8 +830,6 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int guest = True; } - strlower(user); - pstrcpy(sesssetup_user,user); reload_services(True); -- cgit