diff options
author | Jeremy Allison <jra@samba.org> | 2006-04-08 05:09:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:55 -0500 |
commit | c9c502442b40aba97de17456ba948effcdfa3d05 (patch) | |
tree | 396a1a1776a1cf0bacd1fdbd777e93fc6711304d /source3 | |
parent | 876f2deb3a6029b4e02ec25bc3099bfa07840a14 (diff) | |
download | samba-c9c502442b40aba97de17456ba948effcdfa3d05.tar.gz samba-c9c502442b40aba97de17456ba948effcdfa3d05.tar.bz2 samba-c9c502442b40aba97de17456ba948effcdfa3d05.zip |
r14989: Fix from Mathias Dietz <MDIETZ@de.ibm.com>. EPERM can be
a valid return from getting an xattr. Don't disable if
we get it.
Jeremy.
(This used to be commit 7769b678f22d8ab4aa8aef55966813355bf2ce6d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/dosmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index f376de1343..583b3f19e7 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -222,7 +222,7 @@ static BOOL get_ea_dos_attribute(connection_struct *conn, const char *path,SMB_S sizeret = SMB_VFS_GETXATTR(conn, path, SAMBA_XATTR_DOS_ATTRIB, attrstr, sizeof(attrstr)); if (sizeret == -1) { #if defined(ENOTSUP) && defined(ENOATTR) - if ((errno != ENOTSUP) && (errno != ENOATTR) && (errno != EACCES)) { + if ((errno != ENOTSUP) && (errno != ENOATTR) && (errno != EACCES) && (errno != EPERM)) { DEBUG(1,("get_ea_dos_attributes: Cannot get attribute from EA on file %s: Error = %s\n", path, strerror(errno) )); set_store_dos_attributes(SNUM(conn), False); |