Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/smbd/open.c

    r141 r204  
    18551855        /* Handle strange delete on close create semantics. */
    18561856        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))
    18581859                || can_set_initial_delete_on_close(lck))) {
    18591860                status = can_set_delete_on_close(fsp, True, new_dos_attributes);
     
    21192120                 (unsigned int)file_attributes));
    21202121
    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)) {
    21222125                DEBUG(2, ("open_directory: %s is a stream name!\n", fname));
    21232126                return NT_STATUS_NOT_A_DIRECTORY;
     
    26122615        if (create_options & FILE_OPEN_BY_FILE_ID) {
    26132616                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;
    26142622                goto fail;
    26152623        }
     
    29572965                         */
    29582966
    2959                         if (is_ntfs_stream_name(fname)) {
     2967                        if ((conn->fs_capabilities & FILE_NAMED_STREAMS) &&
     2968                                        is_ntfs_stream_name(fname)) {
    29602969                                status = NT_STATUS_OBJECT_PATH_NOT_FOUND;
    29612970                                goto fail;
Note: See TracChangeset for help on using the changeset viewer.