Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201786
b: refs/heads/master
c: 9ffaf63
h: refs/heads/master
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Aug 2, 2010
1 parent e086011 commit d7d4037
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69d4b4436b54c1a850d475697fda5ca117b09a5e
refs/heads/master: 9ffaf63e34821ea60b2e1c8593f968d73728f82b
3 changes: 2 additions & 1 deletion trunk/fs/9p/fid.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ struct p9_fid *v9fs_fid_lookup(struct dentry *dentry)
if (access == V9FS_ACCESS_SINGLE)
return ERR_PTR(-EPERM);

if (v9fs_proto_dotu(v9ses))
if (v9fs_proto_dotu(v9ses) ||
v9fs_proto_dotl(v9ses))
uname = NULL;
else
uname = v9ses->uname;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/9p/v9fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses,
v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ;

/* for legacy mode, fall back to V9FS_ACCESS_ANY */
if (!v9fs_proto_dotu(v9ses) &&
if (!(v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) &&
((v9ses->flags&V9FS_ACCESS_MASK) == V9FS_ACCESS_USER)) {

v9ses->flags &= ~V9FS_ACCESS_MASK;
Expand Down

0 comments on commit d7d4037

Please sign in to comment.