diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-29 20:24:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-29 20:24:17 +0000 |
commit | 9066025a8a4afe1f7f559c455d86fc023792ed17 (patch) | |
tree | 6ced773fa584a81c9a0fe957cac357c1f8a9aa2d /source3/client/clientutil.c | |
parent | 282eb4f3e8ea2f19c5609bc498d24a68a1ca48a5 (diff) | |
download | samba-9066025a8a4afe1f7f559c455d86fc023792ed17.tar.gz samba-9066025a8a4afe1f7f559c455d86fc023792ed17.tar.xz samba-9066025a8a4afe1f7f559c455d86fc023792ed17.zip |
Got very strict about the differences and uses of
uid_t, gid_t and vuid. Added sys_getgroups() to get
around the int * return problem. Set correct datatypes
for all uid, gid and vuid variables.
Jeremy.
(This used to be commit e570db46fc3a78e499523fd342e9a34cebb18998)
Diffstat (limited to 'source3/client/clientutil.c')
-rw-r--r-- | source3/client/clientutil.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/source3/client/clientutil.c b/source3/client/clientutil.c index 7f5943cb01f..8b61567485b 100644 --- a/source3/client/clientutil.c +++ b/source3/client/clientutil.c @@ -57,11 +57,10 @@ BOOL writebraw_supported = False; extern int DEBUGLEVEL; -int cnum = 0; -int pid = 0; -int gid = 0; -int uid = 0; -int mid = 0; +uint16 cnum = 0; +uint16 pid = 0; +uint16 vuid = 0; +uint16 mid = 0; int max_xmit = BUFFER_SIZE; @@ -80,7 +79,7 @@ setup basics in a outgoing packet void cli_setup_pkt(char *outbuf) { SSVAL(outbuf,smb_pid,pid); - SSVAL(outbuf,smb_uid,uid); + SSVAL(outbuf,smb_uid,vuid); SSVAL(outbuf,smb_mid,mid); if (Protocol > PROTOCOL_COREPLUS) { @@ -726,10 +725,10 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup, } /* use the returned uid from now on */ - if (SVAL(inbuf,smb_uid) != uid) + if (SVAL(inbuf,smb_uid) != vuid) DEBUG(3,("Server gave us a UID of %d. We gave %d\n", - SVAL(inbuf,smb_uid),uid)); - opt.server_uid = uid = SVAL(inbuf,smb_uid); + SVAL(inbuf,smb_uid),(int)vuid)); + opt.server_vuid = vuid = SVAL(inbuf,smb_uid); } if (opt.sec_mode & 1) { |