summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_search.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-08 19:00:18 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-09 10:53:36 +0200
commit260bc987b00b3fff6c9b99211627b14e9bd0789a (patch)
treea2444c89bc197c13950abc025764d72dcdebb621 /source4/ntvfs/posix/pvfs_search.c
parent40ea52a267c7362e206ac83ff6d1fc586b05e2f4 (diff)
downloadsamba-260bc987b00b3fff6c9b99211627b14e9bd0789a.tar.gz
samba-260bc987b00b3fff6c9b99211627b14e9bd0789a.tar.bz2
samba-260bc987b00b3fff6c9b99211627b14e9bd0789a.zip
s4:ntvfs subsystem - quiet enum warnings
Simply return "NT_STATUS_INVALID_LEVEL" for unknown types of requests. Reviewed-by: Tridge
Diffstat (limited to 'source4/ntvfs/posix/pvfs_search.c')
-rw-r--r--source4/ntvfs/posix/pvfs_search.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/ntvfs/posix/pvfs_search.c b/source4/ntvfs/posix/pvfs_search.c
index a050de1ec3..668f8d741e 100644
--- a/source4/ntvfs/posix/pvfs_search.c
+++ b/source4/ntvfs/posix/pvfs_search.c
@@ -220,11 +220,9 @@ static NTSTATUS fill_search_info(struct pvfs_state *pvfs,
file->id_both_directory_info.name.s = fname;
return NT_STATUS_OK;
- case RAW_SEARCH_DATA_GENERIC:
- break;
+ default:
+ return NT_STATUS_INVALID_LEVEL;
}
-
- return NT_STATUS_INVALID_LEVEL;
}