* samba/libsmb/clientgen.c (cli_session_setup): Convert

username from Unix to DOS codepage before sending.
This commit is contained in:
Andrew V. Samoilov 2003-03-13 14:45:48 +00:00
parent d4336795e6
commit e2ae450cf0
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-03-13 Andrew V. Samoilov <sav@bcs.zp.ua>
* samba/libsmb/clientgen.c (cli_session_setup): Convert
username from Unix to DOS codepage before sending.
2003-03-10 Adam Byrtek <alpha@debian.org>
* extfs/patchfs.in: Minor cleanups.

View File

@ -754,6 +754,7 @@ BOOL cli_session_setup(struct cli_state *cli,
p += passlen;
pstrcpy(p,user);
strupper(p);
unix_to_dos (p, True);
}
else
{
@ -776,6 +777,7 @@ BOOL cli_session_setup(struct cli_state *cli,
p += SVAL(cli->outbuf,smb_vwv8);
pstrcpy(p,user);
strupper(p);
unix_to_dos (p, True);
p = skip_string(p,1);
pstrcpy(p,workgroup);
strupper(p);