fixed the error code for bad SMB2 ioctls
authorAndrew Tridgell <tridge@samba.org>
Thu, 29 May 2008 10:46:18 +0000 (20:46 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 29 May 2008 10:46:18 +0000 (20:46 +1000)
(This used to be commit b1d2d388ecff96dfcc17da24796f36c40cbb3eed)

source4/ntvfs/posix/pvfs_ioctl.c

index d0360e67ed73219f96b35c20880f6f3f5496a605..92d3eae061f2bb487a297f360dc20d158abe7e68 100644 (file)
@@ -73,7 +73,8 @@ NTSTATUS pvfs_ioctl(struct ntvfs_module_context *ntvfs,
 
        case RAW_IOCTL_SMB2:
        case RAW_IOCTL_SMB2_NO_HANDLE:
-               return NT_STATUS_FS_DRIVER_REQUIRED;
+               /* see WSPP SMB2 test 46 */
+               return NT_STATUS_INVALID_DEVICE_REQUEST;
        }
 
        return NT_STATUS_INVALID_LEVEL;