]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: add fallback in is_path_accessible for old servers
authorJeff Layton <jlayton@redhat.com>
Tue, 17 May 2011 10:40:30 +0000 (06:40 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 May 2011 18:20:18 +0000 (11:20 -0700)
commit46042172f111ef38f0ec7312d56f35e33f59b88f
treed5cbc24fc34282e9c3fab4b39230b91322cbf604
parent6518ee48173fab82e94b5da2786243269c029cfd
cifs: add fallback in is_path_accessible for old servers

commit 221d1d797202984cb874e3ed9f1388593d34ee22 upstream.

The is_path_accessible check uses a QPathInfo call, which isn't
supported by ancient win9x era servers. Fall back to an older
SMBQueryInfo call if it fails with the magic error codes.

Reported-and-Tested-by: Sandro Bonazzola <sandro.bonazzola@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/connect.c