Commit ef6fb660 authored by Steve French's avatar Steve French Committed by Steve French

[CIFS] fix error mapping on getfacl to windows and old samba servers to map to EOPNOTSUPP

so the kernel's fall back mechanism works

Signed-off-by: Steve French (sfrench@us.ibm.com)
parent d3fefe84
Version 1.26
------------
Add setfacl support to allow setting of ACLs remotely to Samba 3.10 and later
and other POSIX CIFS compliant servers. Fix error mapping for getfacl
to EOPNOTSUPP when server does not support posix acls on the wire.
Version 1.25
------------
Fix internationlization problem in cifs readdir with filenames that map to
......
......@@ -69,6 +69,7 @@ const struct smb_to_posix_error mapping_table_ERRDOS[] = {
{ERRinvparm, -EINVAL},
{ERRdiskfull, -ENOSPC},
{ERRinvname, -ENOENT},
{ERRinvlevel,-EOPNOTSUPP},
{ERRdirnotempty, -ENOTEMPTY},
{ERRnotlocked, -ENOLCK},
{ERRalreadyexists, -EEXIST},
......
......@@ -244,6 +244,9 @@ ssize_t cifs_getxattr(struct dentry * direntry, const char * ea_name,
search server for EAs or streams to
returns as xattrs */
if(rc == -EINVAL)
rc = -EOPNOTSUPP;
if (full_path)
kfree(full_path);
FreeXid(xid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment