Skip to content

Commit 5a3c558

Browse files
committed
Merge tag '5.9-rc4-smb3-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull cifs fix from Steve French: "A fix for lookup on DFS link when cifsacl or modefromsid is used" * tag '5.9-rc4-smb3-fix' of git://git.samba.org/sfrench/cifs-2.6: cifs: fix DFS mount with cifsacl/modefromsid
2 parents 729e3d0 + 01ec372 commit 5a3c558

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/cifs/inode.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,8 @@ cifs_get_inode_info(struct inode **inode,
10171017
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MODE_FROM_SID) {
10181018
rc = cifs_acl_to_fattr(cifs_sb, &fattr, *inode, true,
10191019
full_path, fid);
1020+
if (rc == -EREMOTE)
1021+
rc = 0;
10201022
if (rc) {
10211023
cifs_dbg(FYI, "%s: Get mode from SID failed. rc=%d\n",
10221024
__func__, rc);
@@ -1025,6 +1027,8 @@ cifs_get_inode_info(struct inode **inode,
10251027
} else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) {
10261028
rc = cifs_acl_to_fattr(cifs_sb, &fattr, *inode, false,
10271029
full_path, fid);
1030+
if (rc == -EREMOTE)
1031+
rc = 0;
10281032
if (rc) {
10291033
cifs_dbg(FYI, "%s: Getting ACL failed with error: %d\n",
10301034
__func__, rc);

0 commit comments

Comments
 (0)