r3323: more warning reductions
[bbaumbach/samba-autobuild/.git] / source4 / ntvfs / posix / pvfs_qfileinfo.c
index 04c196121ae2dea1226f78e5171594f06a7fa023..db4951fff05b89a8a3be727efc381400715b06ac 100644 (file)
@@ -31,6 +31,9 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs, TALLOC_CTX *mem_ctx,
                                  struct pvfs_filename *name, union smb_fileinfo *info)
 {
        switch (info->generic.level) {
+       case RAW_FILEINFO_GENERIC:
+               return NT_STATUS_INVALID_LEVEL;
+
        case RAW_FILEINFO_GETATTR:
                info->getattr.out.attrib     = name->dos.attrib;
                info->getattr.out.size       = name->st.st_size;