diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-27 09:29:36 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-25 07:25:45 +0100 |
commit | 3e9cc501ab07d6c636882c419918563a9823bf53 (patch) | |
tree | bbe9d4e7bcdb31c31d8881f88acd040bbb95e3fe /source4/ntvfs | |
parent | b3e33ea5bf262b325a35800ca846b939409024fa (diff) | |
download | samba-3e9cc501ab07d6c636882c419918563a9823bf53.tar.gz |
s4:ntvfs: explicitly handle RAW_FILEINFO_UNIX_{BASIC,LINK} in ntvfs_map_fileinfo()
This avoids compiler warnings.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/ntvfs_generic.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/ntvfs/ntvfs_generic.c b/source4/ntvfs/ntvfs_generic.c index 0854aa30d30..d3f79196890 100644 --- a/source4/ntvfs/ntvfs_generic.c +++ b/source4/ntvfs/ntvfs_generic.c @@ -908,8 +908,10 @@ NTSTATUS ntvfs_map_fileinfo(TALLOC_CTX *mem_ctx, info->alignment_information.out.alignment_requirement = info2->generic.out.alignment_requirement; return NT_STATUS_OK; -#if 0 case RAW_FILEINFO_UNIX_BASIC: +#if 1 + return NT_STATUS_INVALID_LEVEL; +#else info->unix_basic_info.out.end_of_file = info2->generic.out.end_of_file; info->unix_basic_info.out.num_bytes = info2->generic.out.size; info->unix_basic_info.out.status_change_time = info2->generic.out.change_time; @@ -924,8 +926,11 @@ NTSTATUS ntvfs_map_fileinfo(TALLOC_CTX *mem_ctx, info->unix_basic_info.out.permissions = info2->generic.out.permissions; info->unix_basic_info.out.nlink = info2->generic.out.nlink; return NT_STATUS_OK; - +#endif case RAW_FILEINFO_UNIX_LINK: +#if 1 + return NT_STATUS_INVALID_LEVEL; +#else info->unix_link_info.out.link_dest = info2->generic.out.link_dest; return NT_STATUS_OK; #endif |