Skip to content

Commit 087d857

Browse files
ericvhsmb49
authored andcommitted
net/9p: fix bug in client create for .L
BugLink: https://bugs.launchpad.net/bugs/2023225 [ 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 <ericvh@kernel.org> Reviewed-by: Dominique Martinet <asmadeus@codewreck.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
1 parent 2c0a2ea commit 087d857

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)