cifs: make use of cap_unix(ses) in cifs_reconnect_tcon()
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Feb 2020 13:15:00 +0000 (14:15 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 23 Mar 2020 03:49:09 +0000 (22:49 -0500)
cap_unix(ses) defaults to false for SMB2.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c

index b173ff22560b26ec256f63bcaf7f3e686a5665c9..140efc1a937469e73ac801820625ad18ab01705d 100644 (file)
@@ -331,7 +331,7 @@ cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command)
        atomic_inc(&tconInfoReconnectCount);
 
        /* tell server Unix caps we support */
-       if (ses->capabilities & CAP_UNIX)
+       if (cap_unix(ses))
                reset_cifs_unix_caps(0, tcon, NULL, NULL);
 
        /*