From d49ce336897d679dd4c9887d00de1b0f63218db2 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 11 Dec 2018 22:08:13 +0100 Subject: [PATCH] fuse-overlayfs: set umask to 0 be sure we are able to set all the bits on created files/directories. Signed-off-by: Giuseppe Scrivano --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 3cac1dc..c4efa57 100644 --- a/main.c +++ b/main.c @@ -3678,6 +3678,8 @@ main (int argc, char *argv[]) error (EXIT_FAILURE, errno, "cannot open workdir"); } + umask (0); + se = fuse_session_new (&args, &ovl_oper, sizeof (ovl_oper), &lo); lo.se = se; if (se == NULL)