Ignore:
Timestamp:
Nov 12, 2012, 5:09:31 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/smbd/open.c

    r732 r733  
    9494                        smb_fname_str_dbg(smb_fname),
    9595                        (unsigned int)*access_granted ));
     96                return NT_STATUS_OK;
     97        }
     98
     99        if (access_mask == DELETE_ACCESS &&
     100                        VALID_STAT(smb_fname->st) &&
     101                        S_ISLNK(smb_fname->st.st_ex_mode)) {
     102                /* We can always delete a symlink. */
     103                DEBUG(10,("smbd_check_open_rights: not checking ACL "
     104                        "on DELETE_ACCESS on symlink %s.\n",
     105                        smb_fname_str_dbg(smb_fname) ));
    96106                return NT_STATUS_OK;
    97107        }
     
    14321442        }
    14331443
    1434         status = check_name(conn, smb_fname->base_name);
    1435         if (!NT_STATUS_IS_OK(status)) {
    1436                 return status;
    1437         }
    1438 
    14391444        if (!posix_open) {
    14401445                new_dos_attributes &= SAMBA_ATTRIBUTES_MASK;
     
    33093314        }
    33103315
    3311         /* All file access must go through check_name() */
    3312 
    3313         status = check_name(conn, smb_fname->base_name);
    3314         if (!NT_STATUS_IS_OK(status)) {
    3315                 goto fail;
    3316         }
    3317 
    33183316        status = create_file_unixpath(
    33193317                conn, req, smb_fname, access_mask, share_access,
Note: See TracChangeset for help on using the changeset viewer.