Changeset 221 for branches/samba-3.3.x/source/smbd/file_access.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/smbd/file_access.c
r206 r221 117 117 * not help, by the DELETE_CHILD bit on the containing directory. 118 118 * 119 * Here we check the other way round because with just posix 120 * permissions looking at the file itself will never grant DELETE, so 121 * by looking at the directory first we save one get_acl call. 119 * Here we only check the directory permissions, we will 120 * check the file DELETE permission separately. 122 121 */ 123 122 124 if (can_access_file_acl(conn, dname, FILE_DELETE_CHILD)) { 125 return true; 126 } 127 128 return can_access_file_acl(conn, fname, DELETE_ACCESS); 123 return can_access_file_acl(conn, dname, FILE_DELETE_CHILD); 129 124 } 130 125
Note:
See TracChangeset
for help on using the changeset viewer.