OSDN Git Service

cifs: Skip any trailing backslashes from UNC
authorPaulo Alcantara <palcantara@suse.de>
Wed, 14 Nov 2018 16:03:40 +0000 (14:03 -0200)
committerSteve French <stfrench@microsoft.com>
Mon, 24 Dec 2018 05:05:05 +0000 (23:05 -0600)
commitc34fea5a636d98607ee6e41c78acc9d5ca8fb756
treed805933b5f0b276ede415d7a0d87868108c31c2f
parent56c762eb9bee330bb4e6d11c589434f2904d3ab6
cifs: Skip any trailing backslashes from UNC

When extracting hostname from UNC, check for leading backslashes
before trying to remove them.

Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c