SMB2 doesn't have NAME_INFORMATION level
authorAndrew Tridgell <tridge@samba.org>
Wed, 28 May 2008 11:48:40 +0000 (21:48 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 28 May 2008 11:48:40 +0000 (21:48 +1000)
source/ntvfs/posix/pvfs_qfileinfo.c

index c6634669852c80572e5bdb79fe55a0bc5a62c288..b9f763c2e0f06b999d903c840824fff79d8a0dba 100644 (file)
@@ -216,6 +216,10 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs,
 
        case RAW_FILEINFO_NAME_INFO:
        case RAW_FILEINFO_NAME_INFORMATION:
+               if (req->ctx->protocol == PROTOCOL_SMB2) {
+                       /* strange that SMB2 doesn't have this */
+                       return NT_STATUS_NOT_SUPPORTED;
+               }
                info->name_info.out.fname.s = name->original_name;
                return NT_STATUS_OK;