pvfs_setfileinfo: support renaming of directories
authorStefan Metzmacher <metze@samba.org>
Fri, 29 Feb 2008 08:10:12 +0000 (09:10 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 29 Feb 2008 14:17:53 +0000 (15:17 +0100)
metze

source/ntvfs/posix/pvfs_setfileinfo.c

index 18647c95c590c7ea45e81e008b40b6e7303abb5a..5ac9cedc48177c13a9f07d38b841516d3d28a9c7 100644 (file)
@@ -96,11 +96,6 @@ static NTSTATUS pvfs_setfileinfo_rename(struct pvfs_state *pvfs,
                return NT_STATUS_NOT_SUPPORTED;
        }
 
-       if (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) {
-               /* don't allow this for now */
-               return NT_STATUS_FILE_IS_A_DIRECTORY;
-       }
-
        /* don't allow stream renames for now */
        if (name->stream_name) {
                return NT_STATUS_INVALID_PARAMETER;