Skip to content

Commit 864138c

Browse files
metze-sambasmfrench
authored andcommitted
cifs: make use of cap_unix(ses) in cifs_reconnect_tcon()
cap_unix(ses) defaults to false for SMB2. Signed-off-by: Stefan Metzmacher <[email protected]> Reviewed-by: Pavel Shilovsky <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent b08484d commit 864138c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/cifssmb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command)
331331
atomic_inc(&tconInfoReconnectCount);
332332

333333
/* tell server Unix caps we support */
334-
if (ses->capabilities & CAP_UNIX)
334+
if (cap_unix(ses))
335335
reset_cifs_unix_caps(0, tcon, NULL, NULL);
336336

337337
/*

0 commit comments

Comments
 (0)