projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49676ed
)
passthrough_ll: set umask at startup
author
Miklos Szeredi
<mszeredi@redhat.com>
Tue, 14 Aug 2018 19:37:02 +0000
(21:37 +0200)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Wed, 10 Oct 2018 09:49:48 +0000
(10:49 +0100)
Like all the other passthrough examples.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
example/passthrough_ll.c
patch
|
blob
|
history
diff --git
a/example/passthrough_ll.c
b/example/passthrough_ll.c
index 0b92d9cdc8ed7a911b92a9de9b6ba795cfbe9689..4c4f68af3a3c64a2c1fd2be6b682ff60ca2a0317 100644
(file)
--- 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;