s3-vfs: Use ENOATTR in errno comparison for getxattr
authorAnoop C S <anoopcs@redhat.com>
Wed, 23 Jan 2019 10:10:43 +0000 (15:40 +0530)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Feb 2019 18:13:57 +0000 (19:13 +0100)
commit9b21b518d7264cb1e1fddfeea440fb70d0bc8e50
treecb17afa32cf4aee827aa53695e6fc79812af3d66
parent676b43893d7a5ff1f935e1db633878bc7cc6bfb6
s3-vfs: Use ENOATTR in errno comparison for getxattr

* ENODATA is not defined in FreeBSD
* ENOATTR is defined to be a synonym for ENODATA in Linux
* In its absence Samba already defines ENOATTR to either
  ENODATA or ENOENT

Thus it is safe and correct to compare with ENOATTR rather
than ENODATA.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13774

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jan 23 21:59:10 CET 2019 on sn-devel-144

(cherry picked from commit c99402724a65f4e1f8ed4dcd236a43e0603bef0a)

Autobuild-User(v4-9-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-9-test): Tue Feb  5 19:13:57 CET 2019 on sn-devel-144
source3/modules/posixacl_xattr.c
source3/modules/vfs_glusterfs.c
source3/modules/vfs_glusterfs_fuse.c