From 74d46fc0615ec1c91c04155fb5e16c3f57f6c36b Mon Sep 17 00:00:00 2001 From: Benjamin Tovar Date: Tue, 5 Nov 2024 14:46:58 -0500 Subject: [PATCH] chirp_fuse: remove creation flags after mknod (#3971) Fixes #3968 --- chirp/src/chirp_fuse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chirp/src/chirp_fuse.c b/chirp/src/chirp_fuse.c index 106afd499a..b48e7980c2 100644 --- a/chirp/src/chirp_fuse.c +++ b/chirp/src/chirp_fuse.c @@ -495,6 +495,8 @@ static int chirp_fuse_create(const char *path, mode_t mode, struct fuse_file_inf if(error != 0) return error; + fi->flags &= ~(O_CREAT|O_TRUNC); + return chirp_fuse_open(path, fi); }