]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:include: change smb_request->vuid to uint64_t
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Jun 2012 12:40:57 +0000 (14:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jun 2012 08:18:40 +0000 (10:18 +0200)
metze

source3/include/vfs.h
source3/smbd/reply.c

index 5c341862e1ea209e94ba70d939a6ce69cc3be4df..ec139a72e7d5b022f817e18085cdd392a3b7c932 100644 (file)
@@ -349,7 +349,7 @@ struct smb_request {
        uint16 smbpid;
        uint64_t mid; /* For compatibility with SMB2. */
        uint32_t seqnum;
-       uint16 vuid;
+       uint64_t vuid; /* For compatibility with SMB2. */
        uint16 tid;
        uint8  wct;
        const uint16_t *vwv;
index f89631707b7df149c7eedba7e2d093614b5df8fc..2ea41b4c41da9b5266f67b51d9f50d0e78bdd498 100644 (file)
@@ -2080,8 +2080,8 @@ void reply_ulogoffX(struct smb_request *req)
        vuser = get_valid_user_struct(sconn, req->vuid);
 
        if(vuser == NULL) {
-               DEBUG(3,("ulogoff, vuser id %d does not map to user.\n",
-                        req->vuid));
+               DEBUG(3,("ulogoff, vuser id %llu does not map to user.\n",
+                        (unsigned long long)req->vuid));
 
                req->vuid = UID_FIELD_INVALID;
                reply_force_doserror(req, ERRSRV, ERRbaduid);
@@ -2101,7 +2101,8 @@ void reply_ulogoffX(struct smb_request *req)
        SSVAL(req->outbuf, smb_vwv0, 0xff); /* andx chain ends */
        SSVAL(req->outbuf, smb_vwv1, 0);    /* no andx offset */
 
-       DEBUG( 3, ( "ulogoffX vuid=%d\n", req->vuid ) );
+       DEBUG(3, ("ulogoffX vuid=%llu\n",
+                 (unsigned long long)req->vuid));
 
        END_PROFILE(SMBulogoffX);
        req->vuid = UID_FIELD_INVALID;