From: Miklos Szeredi Date: Tue, 14 Aug 2018 19:37:02 +0000 (+0200) Subject: passthrough_ll: set umask at startup X-Git-Tag: fuse-3.3.0~19 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dd8d21296c203e0196f0bca624ba7f674b93a877;p=qemu-gpiodev%2Flibfuse.git passthrough_ll: set umask at startup Like all the other passthrough examples. Signed-off-by: Miklos Szeredi --- diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index 0b92d9c..4c4f68a 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -585,6 +585,9 @@ int main(int argc, char *argv[]) .writeback = 0 }; int ret = -1; + /* Don't mask creation mode, kernel already did that */ + umask(0); + pthread_mutex_init(&lo.mutex, NULL); lo.root.next = lo.root.prev = &lo.root; lo.root.fd = -1;