git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9176594
)
answer SMB2_ALL_EAS qfileinfo
author
Andrew Tridgell
<tridge@samba.org>
Wed, 28 May 2008 01:49:43 +0000
(11:49 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 28 May 2008 01:49:43 +0000
(11:49 +1000)
source/ntvfs/posix/pvfs_qfileinfo.c
patch
|
blob
|
history
diff --git
a/source/ntvfs/posix/pvfs_qfileinfo.c
b/source/ntvfs/posix/pvfs_qfileinfo.c
index 6e3092b744fc1aa2d4ceaaad92d3e6be7ba52a61..c6634669852c80572e5bdb79fe55a0bc5a62c288 100644
(file)
--- a/
source/ntvfs/posix/pvfs_qfileinfo.c
+++ b/
source/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;