From dd8d21296c203e0196f0bca624ba7f674b93a877 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 14 Aug 2018 21:37:02 +0200 Subject: [PATCH] passthrough_ll: set umask at startup Like all the other passthrough examples. Signed-off-by: Miklos Szeredi --- example/passthrough_ll.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2