Changeset 204 for branches/samba-3.2.x/source/smbd/open.c
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/smbd/open.c
r141 r204 1855 1855 /* Handle strange delete on close create semantics. */ 1856 1856 if ((create_options & FILE_DELETE_ON_CLOSE) 1857 && (is_ntfs_stream_name(fname) 1857 && (((conn->fs_capabilities & FILE_NAMED_STREAMS) 1858 && is_ntfs_stream_name(fname)) 1858 1859 || can_set_initial_delete_on_close(lck))) { 1859 1860 status = can_set_delete_on_close(fsp, True, new_dos_attributes); … … 2119 2120 (unsigned int)file_attributes)); 2120 2121 2121 if (!(file_attributes & FILE_FLAG_POSIX_SEMANTICS) && is_ntfs_stream_name(fname)) { 2122 if (!(file_attributes & FILE_FLAG_POSIX_SEMANTICS) && 2123 (conn->fs_capabilities & FILE_NAMED_STREAMS) && 2124 is_ntfs_stream_name(fname)) { 2122 2125 DEBUG(2, ("open_directory: %s is a stream name!\n", fname)); 2123 2126 return NT_STATUS_NOT_A_DIRECTORY; … … 2612 2615 if (create_options & FILE_OPEN_BY_FILE_ID) { 2613 2616 status = NT_STATUS_NOT_SUPPORTED; 2617 goto fail; 2618 } 2619 2620 if (create_options & NTCREATEX_OPTIONS_INVALID_PARAM_MASK) { 2621 status = NT_STATUS_INVALID_PARAMETER; 2614 2622 goto fail; 2615 2623 } … … 2957 2965 */ 2958 2966 2959 if (is_ntfs_stream_name(fname)) { 2967 if ((conn->fs_capabilities & FILE_NAMED_STREAMS) && 2968 is_ntfs_stream_name(fname)) { 2960 2969 status = NT_STATUS_OBJECT_PATH_NOT_FOUND; 2961 2970 goto fail;
Note:
See TracChangeset
for help on using the changeset viewer.