Skip to content

Commit 0fc608a

Browse files
ericvhgregkh
authored andcommitted
net/9p: fix bug in client create for .L
[ Upstream commit 3866584 ] We are supposed to set fid->mode to reflect the flags that were used to open the file. We were actually setting it to the creation mode which is the default perms of the file not the flags the file was opened with. Signed-off-by: Eric Van Hensbergen <[email protected]> Reviewed-by: Dominique Martinet <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 2fece63 commit 0fc608a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/9p/client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ int p9_client_create_dotl(struct p9_fid *ofid, const char *name, u32 flags,
13151315
qid->type, qid->path, qid->version, iounit);
13161316

13171317
memmove(&ofid->qid, qid, sizeof(struct p9_qid));
1318-
ofid->mode = mode;
1318+
ofid->mode = flags;
13191319
ofid->iounit = iounit;
13201320

13211321
free_and_error:

0 commit comments

Comments
 (0)