| Submitter | Andy Whitcroft |
|---|---|
| Date | Oct. 4, 2011, 2:59 p.m. |
| Message ID | <1317740391-16788-3-git-send-email-apw@canonical.com> |
| Download | mbox | patch |
| Permalink | /patch/117644/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index f4e13d6..8cb85a8 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2210,6 +2210,11 @@ is_path_accessible(int xid, struct cifsTconInfo *tcon, 0 /* not legacy */, cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); + + if (rc == -EOPNOTSUPP || rc == -EINVAL) + rc = SMBQueryInformation(xid, tcon, full_path, pfile_info, + cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & + CIFS_MOUNT_MAP_SPECIAL_CHR); kfree(pfile_info); return rc; }