Ignore:
Timestamp:
Jul 1, 2011, 4:02:23 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update vendor to version 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/smbd/dosmode.c

    r414 r594  
    412412                 */
    413413
    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,
    415415                                                      &fsp)))
    416416                        return ret;
     
    422422                }
    423423                unbecome_root();
    424                 close_file_fchmod(NULL, fsp);
     424                close_file(NULL, fsp, NORMAL_CLOSE);
    425425                return ret;
    426426        }
     
    821821                 * still in our current user context. This ensures we
    822822                 * are not violating security in doing the fchmod.
    823                  * This file open does *not* break any oplocks we are
    824                  * holding. We need to review this.... may need to
    825                  * break batch oplocks open by others. JRA.
    826823                 */
    827824                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,
    829826                                     &fsp)))
    830827                        return -1;
     
    832829                ret = SMB_VFS_FCHMOD(fsp, unixmode);
    833830                unbecome_root();
    834                 close_file_fchmod(NULL, fsp);
     831                close_file(NULL, fsp, NORMAL_CLOSE);
    835832                if (!newfile) {
    836833                        notify_fname(conn, NOTIFY_ACTION_MODIFIED,
Note: See TracChangeset for help on using the changeset viewer.