Skip to content

Commit 89c601a

Browse files
palismfrench
authored andcommitted
cifs: Fix recognizing SFU symlinks
SFU symlinks have 8 byte prefix: "IntxLNK\1". So check also the last 8th byte 0x01. Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 9b4af91 commit 89c601a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const char *path,
612612
cifs_dbg(FYI, "Socket\n");
613613
fattr->cf_mode |= S_IFSOCK;
614614
fattr->cf_dtype = DT_SOCK;
615-
} else if (memcmp("IntxLNK", pbuf, 7) == 0) {
615+
} else if (memcmp("IntxLNK\1", pbuf, 8) == 0) {
616616
cifs_dbg(FYI, "Symlink\n");
617617
fattr->cf_mode |= S_IFLNK;
618618
fattr->cf_dtype = DT_LNK;

0 commit comments

Comments
 (0)