summaryrefslogtreecommitdiffstats
path: root/source4/ntvfs/posix/pvfs_qfileinfo.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-05-28 13:42:29 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-05-28 13:42:29 +1000
commit0f2d8eacf5217b04c88420513a1a1f52e374d659 (patch)
tree0bfa7b93a0ba286db7839279ddb1f1279e658131 /source4/ntvfs/posix/pvfs_qfileinfo.c
parentbaa2dffdf34c2f3aa150695c60742d616eeb3b09 (diff)
parentbb264d3a1f212be7eca4b38e61db19de8a26e158 (diff)
downloadsamba-0f2d8eacf5217b04c88420513a1a1f52e374d659.tar.gz
samba-0f2d8eacf5217b04c88420513a1a1f52e374d659.tar.xz
samba-0f2d8eacf5217b04c88420513a1a1f52e374d659.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 3038dd8a4ffae4113f49547a9d4d6b1c8c46397a)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_qfileinfo.c')
-rw-r--r--source4/ntvfs/posix/pvfs_qfileinfo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_qfileinfo.c b/source4/ntvfs/posix/pvfs_qfileinfo.c
index 6e3092b744f..c6634669852 100644
--- a/source4/ntvfs/posix/pvfs_qfileinfo.c
+++ b/source4/ntvfs/posix/pvfs_qfileinfo.c
@@ -178,6 +178,15 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs,
case RAW_FILEINFO_ALL_EAS:
return pvfs_query_all_eas(pvfs, req, name, fd, &info->all_eas.out);
+ case RAW_FILEINFO_SMB2_ALL_EAS: {
+ NTSTATUS status = pvfs_query_all_eas(pvfs, req, name, fd, &info->all_eas.out);
+ if (NT_STATUS_IS_OK(status) &&
+ info->all_eas.out.num_eas == 0) {
+ return NT_STATUS_NO_EAS_ON_FILE;
+ }
+ return status;
+ }
+
case RAW_FILEINFO_IS_NAME_VALID:
return NT_STATUS_OK;