Ignore:
Timestamp:
Aug 6, 2011, 6:50:53 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.11

File:
1 edited

Legend:

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

    r599 r620  
    8686        NTSTATUS status;
    8787        struct security_descriptor *sd = NULL;
     88
     89        if ((access_mask & DELETE_ACCESS) && !lp_acl_check_permissions(SNUM(conn))) {
     90                *access_granted = access_mask;
     91
     92                DEBUG(10,("smbd_check_open_rights: not checking ACL "
     93                        "on DELETE_ACCESS on file %s. Granting 0x%x\n",
     94                        smb_fname_str_dbg(smb_fname),
     95                        (unsigned int)*access_granted ));
     96                return NT_STATUS_OK;
     97        }
    8898
    8999        status = SMB_VFS_GET_NT_ACL(conn, smb_fname->base_name,
     
    29682978        /* Setting FILE_SHARE_DELETE is the hint. */
    29692979
    2970         if (lp_acl_check_permissions(SNUM(conn))
    2971             && (create_disposition != FILE_CREATE)
     2980        if ((create_disposition != FILE_CREATE)
    29722981            && (access_mask & DELETE_ACCESS)
    29732982            && (!(can_delete_file_in_directory(conn, smb_fname) ||
Note: See TracChangeset for help on using the changeset viewer.