[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221218232217.1713283-7-evanhensbergen@icloud.com>
Date: Sun, 18 Dec 2022 23:22:19 +0000
From: Eric Van Hensbergen <evanhensbergen@...oud.com>
To: v9fs-developer@...ts.sourceforge.net, asmadeus@...ewreck.org,
rminnich@...il.com, lucho@...kov.net
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux_oss@...debyte.com,
Eric Van Hensbergen <evanhensbergen@...oud.com>
Subject: [PATCH v2 06/10] 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 <evanhensbergen@...oud.com>
---
net/9p/client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/9p/client.c b/net/9p/client.c
index f982d36b55b8..4ae41f8f7286 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:
--
2.37.2
Powered by blists - more mailing lists