net/9p: fix bug in client create for .L
authorEric Van Hensbergen <ericvh@kernel.org>
Sun, 18 Dec 2022 17:57:27 +0000 (17:57 +0000)
committerEric Van Hensbergen <ericvh@kernel.org>
Fri, 24 Feb 2023 13:42:40 +0000 (13:42 +0000)
commit3866584a1c56a2bbc8c0981deb4476d0b801969e
tree957b9d642fd471033520e42dac43b1e1868a7f4c
parent74a25e6e916cb57dab4267a96fbe8864ed21abdb
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>
net/9p/client.c