diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-05 18:17:15 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-06 12:07:33 +0200 |
commit | 02d9ba6ee1db9d65fad5d8bcd7478abd82281d5d (patch) | |
tree | 582f62930f08d02734d653eba523a08c7886f85a /source3/smbd/session.c | |
parent | bb27bb081e79334861192b6e02c51fd70440c65e (diff) | |
download | samba-02d9ba6ee1db9d65fad5d8bcd7478abd82281d5d.tar.gz samba-02d9ba6ee1db9d65fad5d8bcd7478abd82281d5d.tar.bz2 samba-02d9ba6ee1db9d65fad5d8bcd7478abd82281d5d.zip |
s3:smbd: change user_struct->vuid to uint64_t
Only sconn->smb1.sessions.next_vuid remains as uint16_t,
so that we do not generate larger values yet.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun 6 12:07:33 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/session.c')
-rw-r--r-- | source3/smbd/session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c index a98ef51016..47eafab979 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -119,8 +119,9 @@ bool session_claim(struct smbd_server_connection *sconn, struct user_struct *vus SESSION_UTMP_TEMPLATE, i); } else { - snprintf(keystr, sizeof(keystr), "ID/%s/%u", - procid_str_static(&pid), vuser->vuid); + snprintf(keystr, sizeof(keystr), "ID/%s/%llu", + procid_str_static(&pid), + (unsigned long long)vuser->vuid); rec = sessionid_fetch_record(NULL, keystr); if (rec == NULL) { @@ -130,7 +131,7 @@ bool session_claim(struct smbd_server_connection *sconn, struct user_struct *vus snprintf(sessionid.id_str, sizeof(sessionid.id_str), SESSION_TEMPLATE, (long unsigned int)getpid(), - vuser->vuid); + (unsigned long long)vuser->vuid); } SMB_ASSERT(rec != NULL); |