diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-08-14 21:37:02 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-10-10 10:49:48 +0100 |
commit | dd8d21296c203e0196f0bca624ba7f674b93a877 (patch) | |
tree | 50de5a059bb13233f5b85af7e139d93bfbc7a57b /example | |
parent | 49676ed9cc2f21d52eabc464e8ab2eea6374eb34 (diff) | |
download | libfuse-dd8d21296c203e0196f0bca624ba7f674b93a877.tar.gz |
passthrough_ll: set umask at startup
Like all the other passthrough examples.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/passthrough_ll.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |