diff options
author | Eric Van Hensbergen <ericvh@kernel.org> | 2022-12-18 17:57:27 +0000 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2023-02-24 13:42:40 +0000 |
commit | 3866584a1c56a2bbc8c0981deb4476d0b801969e (patch) | |
tree | 957b9d642fd471033520e42dac43b1e1868a7f4c /net/9p | |
parent | 74a25e6e916cb57dab4267a96fbe8864ed21abdb (diff) | |
download | lwn-3866584a1c56a2bbc8c0981deb4476d0b801969e.tar.gz lwn-3866584a1c56a2bbc8c0981deb4476d0b801969e.zip |
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>
Diffstat (limited to 'net/9p')
-rw-r--r-- | net/9p/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index 6c2a768a6ab1..2adcb5e7b0e2 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -1293,7 +1293,7 @@ int p9_client_create_dotl(struct p9_fid *ofid, const char *name, u32 flags, qid->type, qid->path, qid->version, iounit); memmove(&ofid->qid, qid, sizeof(struct p9_qid)); - ofid->mode = mode; + ofid->mode = flags; ofid->iounit = iounit; free_and_error: |