Changeset 596 for trunk/server/source3/smbd/dosmode.c
- Timestamp:
- Jul 2, 2011, 3:35:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/smbd/dosmode.c
r454 r596 432 432 */ 433 433 434 if (!NT_STATUS_IS_OK(open_file_fchmod( NULL,conn, smb_fname,434 if (!NT_STATUS_IS_OK(open_file_fchmod(conn, smb_fname, 435 435 &fsp))) 436 436 return ret; … … 442 442 } 443 443 unbecome_root(); 444 close_file _fchmod(NULL, fsp);444 close_file(NULL, fsp, NORMAL_CLOSE); 445 445 return ret; 446 446 } … … 841 841 * still in our current user context. This ensures we 842 842 * are not violating security in doing the fchmod. 843 * This file open does *not* break any oplocks we are844 * holding. We need to review this.... may need to845 * break batch oplocks open by others. JRA.846 843 */ 847 844 files_struct *fsp; 848 if (!NT_STATUS_IS_OK(open_file_fchmod( NULL,conn, smb_fname,845 if (!NT_STATUS_IS_OK(open_file_fchmod(conn, smb_fname, 849 846 &fsp))) 850 847 return -1; … … 852 849 ret = SMB_VFS_FCHMOD(fsp, unixmode); 853 850 unbecome_root(); 854 close_file _fchmod(NULL, fsp);851 close_file(NULL, fsp, NORMAL_CLOSE); 855 852 if (!newfile) { 856 853 notify_fname(conn, NOTIFY_ACTION_MODIFIED,
Note:
See TracChangeset
for help on using the changeset viewer.