diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-15 22:22:26 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-15 18:05:33 +0200 |
commit | 65976d680acd48aa9f59664f715fa9ce40185955 (patch) | |
tree | 534145e80913511cc38a788d3bc52ae8ded98290 /source3/modules/vfs_xattr_tdb.c | |
parent | cc3bdaaf0a5586e0f840466719f9f8387c5cddd0 (diff) | |
download | samba-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_xattr_tdb.c')
-rw-r--r-- | source3/modules/vfs_xattr_tdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index 80db90441d..719ac0c84d 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -50,6 +50,7 @@ static ssize_t xattr_tdb_getxattr(struct vfs_handle_struct *handle, xattr_size = xattr_tdb_getattr(db, frame, &id, name, &blob); if (xattr_size < 0) { + errno = ENOATTR; TALLOC_FREE(frame); return -1; } @@ -85,6 +86,7 @@ static ssize_t xattr_tdb_fgetxattr(struct vfs_handle_struct *handle, xattr_size = xattr_tdb_getattr(db, frame, &id, name, &blob); if (xattr_size < 0) { + errno = ENOATTR; TALLOC_FREE(frame); return -1; } |