]> Git Repo - linux.git/commitdiff
net/9p: fix bug in client create for .L
authorEric Van Hensbergen <[email protected]>
Sun, 18 Dec 2022 17:57:27 +0000 (17:57 +0000)
committerEric Van Hensbergen <[email protected]>
Fri, 24 Feb 2023 13:42:40 +0000 (13:42 +0000)
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 <[email protected]>
Reviewed-by: Dominique Martinet <[email protected]>
net/9p/client.c

index 6c2a768a6ab155e7a9935f00cd7f9c8ba511f726..2adcb5e7b0e29e54fc104e0a58a7a11781f1f9a6 100644 (file)
@@ -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:
This page took 0.076369 seconds and 4 git commands to generate.