summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_posix_eadb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-15 22:22:26 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-15 18:05:33 +0200
commit65976d680acd48aa9f59664f715fa9ce40185955 (patch)
tree534145e80913511cc38a788d3bc52ae8ded98290 /source3/modules/vfs_posix_eadb.c
parentcc3bdaaf0a5586e0f840466719f9f8387c5cddd0 (diff)
downloadsamba-65976d680acd48aa9f59664f715fa9ce40185955.tar.gz
samba-65976d680acd48aa9f59664f715fa9ce40185955.tar.bz2
samba-65976d680acd48aa9f59664f715fa9ce40185955.zip
s3-vfs: Set errno in xattr emulation
The caller may check this errno. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 15 18:05:33 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/modules/vfs_posix_eadb.c')
-rw-r--r--source3/modules/vfs_posix_eadb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/modules/vfs_posix_eadb.c b/source3/modules/vfs_posix_eadb.c
index c8bebc4c0f..fff7c11dce 100644
--- a/source3/modules/vfs_posix_eadb.c
+++ b/source3/modules/vfs_posix_eadb.c
@@ -52,6 +52,11 @@ static ssize_t posix_eadb_getattr(struct tdb_wrap *db_ctx,
status = pull_xattr_blob_tdb_raw(db_ctx, talloc_tos(), name, fname, fd, size, &blob);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
+ errno = ENOATTR;
+ return -1;
+ }
+
if (!NT_STATUS_IS_OK(status)) {
DEBUG(10, ("posix_eadb_fetch_attrs failed: %s\n",
nt_errstr(status)));