Changeset 745 for trunk/server/source4/ntvfs/ntvfs_generic.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/ntvfs/ntvfs_generic.c
r414 r745 149 149 uint32_t set_size = 0; 150 150 union smb_setfileinfo *sf; 151 u int_t state;151 unsigned int state; 152 152 153 153 if (!NT_STATUS_IS_OK(status)) { … … 285 285 { 286 286 io2->generic.in.create_options = NTCREATEX_OPTIONS_NON_DIRECTORY_FILE; 287 io2->generic.in.private_flags = 0; 287 288 288 289 if (flags & OPENX_FLAGS_REQUEST_OPLOCK) { … … 328 329 case OPENX_MODE_DENY_DOS: 329 330 /* DENY_DOS is quite strange - it depends on the filename! */ 330 io2->generic.in. create_options |=331 io2->generic.in.private_flags |= 331 332 NTCREATEX_OPTIONS_PRIVATE_DENY_DOS; 332 333 if (is_exe_filename(fname)) { … … 343 344 break; 344 345 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; 346 347 io2->generic.in.share_access = NTCREATEX_SHARE_ACCESS_NONE; 347 348 break; … … 516 517 break; 517 518 } 518 io2->generic.in.root_fid = 0;519 io2->generic.in.root_fid.fnum = 0; 519 520 io2->generic.in.access_mask = io->smb2.in.desired_access; 520 521 io2->generic.in.alloc_size = io->smb2.in.alloc_size; … … 529 530 io2->generic.in.ea_list = &io->smb2.in.eas; 530 531 io2->generic.in.query_maximal_access = io->smb2.in.query_maximal_access; 532 io2->generic.in.private_flags = 0; 531 533 532 534 /* we don't support timewarp yet */ … … 580 582 case RAW_QFS_DSKATTR: { 581 583 /* map from generic to DSKATTR */ 582 u int_t bpunit = 64;584 unsigned int bpunit = 64; 583 585 584 586 /* we need to scale the sizes to fit */ … … 1107 1109 MS-SMB2 3.3.5.14 */ 1108 1110 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 } 1109 1114 lck2->generic.in.ulock_cnt = lck->smb2.in.lock_count; 1110 1115 isunlock = true; … … 1114 1119 } 1115 1120 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 1116 1130 if (isunlock && 1117 1131 (lck->smb2.in.locks[i].flags & … … 1176 1190 union smb_lock *lck; 1177 1191 union smb_close *cl; 1178 u int_t state;1192 unsigned int state; 1179 1193 1180 1194 if (NT_STATUS_IS_ERR(status)) { … … 1370 1384 union smb_lock *lck; 1371 1385 NTSTATUS status; 1372 u int_t state;1386 unsigned int state; 1373 1387 1374 1388 rd2 = talloc(req, union smb_read);
Note:
See TracChangeset
for help on using the changeset viewer.