diff options
author | Jeremy Allison <jra@samba.org> | 2000-08-28 20:45:00 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-08-28 20:45:00 +0000 |
commit | 7d93eb3483029c9edd2c7b6361d514a7a3ec4e94 (patch) | |
tree | 45dcb92b25fbd2edb7961ce5c2628a2d4b4907d8 | |
parent | 0c5bbb3bbdaa634361d2abbc4d705343df448caa (diff) | |
download | samba-7d93eb3483029c9edd2c7b6361d514a7a3ec4e94.tar.gz samba-7d93eb3483029c9edd2c7b6361d514a7a3ec4e94.tar.bz2 samba-7d93eb3483029c9edd2c7b6361d514a7a3ec4e94.zip |
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)
-rw-r--r-- | source3/smbd/password.c | 1 | ||||
-rw-r--r-- | source3/smbd/reply.c | 4 |
2 files changed, 2 insertions, 3 deletions
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); |