Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/smbd/dosmode.c

    r454 r596  
    432432                 */
    433433
    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,
    435435                                                      &fsp)))
    436436                        return ret;
     
    442442                }
    443443                unbecome_root();
    444                 close_file_fchmod(NULL, fsp);
     444                close_file(NULL, fsp, NORMAL_CLOSE);
    445445                return ret;
    446446        }
     
    841841                 * still in our current user context. This ensures we
    842842                 * are not violating security in doing the fchmod.
    843                  * This file open does *not* break any oplocks we are
    844                  * holding. We need to review this.... may need to
    845                  * break batch oplocks open by others. JRA.
    846843                 */
    847844                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,
    849846                                     &fsp)))
    850847                        return -1;
     
    852849                ret = SMB_VFS_FCHMOD(fsp, unixmode);
    853850                unbecome_root();
    854                 close_file_fchmod(NULL, fsp);
     851                close_file(NULL, fsp, NORMAL_CLOSE);
    855852                if (!newfile) {
    856853                        notify_fname(conn, NOTIFY_ACTION_MODIFIED,
Note: See TracChangeset for help on using the changeset viewer.