aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/9p/fid.c3
-rw-r--r--fs/9p/v9fs.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/9p/fid.c b/fs/9p/fid.c
index 7317b39b2815..5d6cfcbf73e7 100644
--- a/fs/9p/fid.c
+++ b/fs/9p/fid.c
@@ -152,7 +152,8 @@ struct p9_fid *v9fs_fid_lookup(struct dentry *dentry)
152 if (access == V9FS_ACCESS_SINGLE) 152 if (access == V9FS_ACCESS_SINGLE)
153 return ERR_PTR(-EPERM); 153 return ERR_PTR(-EPERM);
154 154
155 if (v9fs_proto_dotu(v9ses)) 155 if (v9fs_proto_dotu(v9ses) ||
156 v9fs_proto_dotl(v9ses))
156 uname = NULL; 157 uname = NULL;
157 else 158 else
158 uname = v9ses->uname; 159 uname = v9ses->uname;
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c
index f8b86e92cd66..3c492011221c 100644
--- a/fs/9p/v9fs.c
+++ b/fs/9p/v9fs.c
@@ -278,7 +278,7 @@ struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses,
278 v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; 278 v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ;
279 279
280 /* for legacy mode, fall back to V9FS_ACCESS_ANY */ 280 /* for legacy mode, fall back to V9FS_ACCESS_ANY */
281 if (!v9fs_proto_dotu(v9ses) && 281 if (!(v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) &&
282 ((v9ses->flags&V9FS_ACCESS_MASK) == V9FS_ACCESS_USER)) { 282 ((v9ses->flags&V9FS_ACCESS_MASK) == V9FS_ACCESS_USER)) {
283 283
284 v9ses->flags &= ~V9FS_ACCESS_MASK; 284 v9ses->flags &= ~V9FS_ACCESS_MASK;