Skip to content

Commit 3866584

Browse files
committed
net/9p: fix bug in client create for .L
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>
1 parent 74a25e6 commit 3866584

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
@@ -1293,7 +1293,7 @@ int p9_client_create_dotl(struct p9_fid *ofid, const char *name, u32 flags,
12931293
qid->type, qid->path, qid->version, iounit);
12941294

12951295
memmove(&ofid->qid, qid, sizeof(struct p9_qid));
1296-
ofid->mode = mode;
1296+
ofid->mode = flags;
12971297
ofid->iounit = iounit;
12981298

12991299
free_and_error:

0 commit comments

Comments
 (0)