Changeset 733 for branches/samba-3.5.x/source3/smbd/open.c
- Timestamp:
- Nov 12, 2012, 5:09:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/smbd/open.c
r732 r733 94 94 smb_fname_str_dbg(smb_fname), 95 95 (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) )); 96 106 return NT_STATUS_OK; 97 107 } … … 1432 1442 } 1433 1443 1434 status = check_name(conn, smb_fname->base_name);1435 if (!NT_STATUS_IS_OK(status)) {1436 return status;1437 }1438 1439 1444 if (!posix_open) { 1440 1445 new_dos_attributes &= SAMBA_ATTRIBUTES_MASK; … … 3309 3314 } 3310 3315 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 3318 3316 status = create_file_unixpath( 3319 3317 conn, req, smb_fname, access_mask, share_access,
Note:
See TracChangeset
for help on using the changeset viewer.