Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/ntvfs/ntvfs_generic.c

    r414 r745  
    149149        uint32_t set_size = 0;
    150150        union smb_setfileinfo *sf;
    151         uint_t state;
     151        unsigned int state;
    152152
    153153        if (!NT_STATUS_IS_OK(status)) {
     
    285285{
    286286        io2->generic.in.create_options = NTCREATEX_OPTIONS_NON_DIRECTORY_FILE;
     287        io2->generic.in.private_flags = 0;
    287288
    288289        if (flags & OPENX_FLAGS_REQUEST_OPLOCK) {
     
    328329        case OPENX_MODE_DENY_DOS:
    329330                /* DENY_DOS is quite strange - it depends on the filename! */
    330                 io2->generic.in.create_options |=
     331                io2->generic.in.private_flags |=
    331332                        NTCREATEX_OPTIONS_PRIVATE_DENY_DOS;
    332333                if (is_exe_filename(fname)) {
     
    343344                break;
    344345        case OPENX_MODE_DENY_FCB:
    345                 io2->generic.in.create_options |= NTCREATEX_OPTIONS_PRIVATE_DENY_FCB;
     346                io2->generic.in.private_flags |= NTCREATEX_OPTIONS_PRIVATE_DENY_FCB;
    346347                io2->generic.in.share_access = NTCREATEX_SHARE_ACCESS_NONE;
    347348                break;
     
    516517                        break;
    517518                }
    518                 io2->generic.in.root_fid        = 0;
     519                io2->generic.in.root_fid.fnum   = 0;
    519520                io2->generic.in.access_mask     = io->smb2.in.desired_access;
    520521                io2->generic.in.alloc_size      = io->smb2.in.alloc_size;
     
    529530                io2->generic.in.ea_list         = &io->smb2.in.eas;
    530531                io2->generic.in.query_maximal_access = io->smb2.in.query_maximal_access;
     532                io2->generic.in.private_flags   = 0;
    531533
    532534                /* we don't support timewarp yet */
     
    580582        case RAW_QFS_DSKATTR: {
    581583                /* map from generic to DSKATTR */
    582                 uint_t bpunit = 64;
     584                unsigned int bpunit = 64;
    583585
    584586                /* we need to scale the sizes to fit */
     
    11071109                   MS-SMB2 3.3.5.14 */
    11081110                if (lck->smb2.in.locks[0].flags & SMB2_LOCK_FLAG_UNLOCK) {
     1111                        if (lck->smb2.in.locks[0].flags & SMB2_LOCK_FLAG_FAIL_IMMEDIATELY) {
     1112                                return NT_STATUS_INVALID_PARAMETER;
     1113                        }
    11091114                        lck2->generic.in.ulock_cnt = lck->smb2.in.lock_count;
    11101115                        isunlock = true;
     
    11141119                }
    11151120                for (i=0;i<lck->smb2.in.lock_count;i++) {
     1121                        if (!isunlock &&
     1122                            lck->smb2.in.locks[i].flags == SMB2_LOCK_FLAG_NONE) {
     1123                                return NT_STATUS_INVALID_PARAMETER;
     1124                        }
     1125
     1126                        if (lck->smb2.in.locks[i].flags & ~SMB2_LOCK_FLAG_ALL_MASK) {
     1127                                return NT_STATUS_INVALID_PARAMETER;
     1128                        }
     1129
    11161130                        if (isunlock &&
    11171131                            (lck->smb2.in.locks[i].flags &
     
    11761190        union smb_lock *lck;
    11771191        union smb_close *cl;
    1178         uint_t state;
     1192        unsigned int state;
    11791193
    11801194        if (NT_STATUS_IS_ERR(status)) {
     
    13701384        union smb_lock *lck;
    13711385        NTSTATUS status;
    1372         uint_t state;
     1386        unsigned int state;
    13731387
    13741388        rd2 = talloc(req, union smb_read);
Note: See TracChangeset for help on using the changeset viewer.