1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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 commit is contained in:
Jeremy Allison -
parent 7db533cb47
commit 2b6e3ed7a6
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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);