Changeset 594 for vendor/current/source3/smbd/dosmode.c
- Timestamp:
- Jul 1, 2011, 4:02:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/dosmode.c
r414 r594 412 412 */ 413 413 414 if (!NT_STATUS_IS_OK(open_file_fchmod( NULL,conn, smb_fname,414 if (!NT_STATUS_IS_OK(open_file_fchmod(conn, smb_fname, 415 415 &fsp))) 416 416 return ret; … … 422 422 } 423 423 unbecome_root(); 424 close_file _fchmod(NULL, fsp);424 close_file(NULL, fsp, NORMAL_CLOSE); 425 425 return ret; 426 426 } … … 821 821 * still in our current user context. This ensures we 822 822 * are not violating security in doing the fchmod. 823 * This file open does *not* break any oplocks we are824 * holding. We need to review this.... may need to825 * break batch oplocks open by others. JRA.826 823 */ 827 824 files_struct *fsp; 828 if (!NT_STATUS_IS_OK(open_file_fchmod( NULL,conn, smb_fname,825 if (!NT_STATUS_IS_OK(open_file_fchmod(conn, smb_fname, 829 826 &fsp))) 830 827 return -1; … … 832 829 ret = SMB_VFS_FCHMOD(fsp, unixmode); 833 830 unbecome_root(); 834 close_file _fchmod(NULL, fsp);831 close_file(NULL, fsp, NORMAL_CLOSE); 835 832 if (!newfile) { 836 833 notify_fname(conn, NOTIFY_ACTION_MODIFIED,
Note:
See TracChangeset
for help on using the changeset viewer.