diff options
Diffstat (limited to 'pseudo_client.c')
-rw-r--r-- | pseudo_client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pseudo_client.c b/pseudo_client.c index b6d11a6..535c810 100644 --- a/pseudo_client.c +++ b/pseudo_client.c @@ -71,6 +71,8 @@ int pseudo_disabled = 0; int pseudo_allow_fsync = 0; static int pseudo_local_only = 0; +int pseudo_umask = 022; + static char **fd_paths = NULL; static int nfds = 0; static int messages = 0; @@ -219,6 +221,9 @@ pseudo_init_client(void) { if (!pseudo_disabled && !pseudo_inited) { char *pseudo_path = 0; + pseudo_umask = umask(022); + umask(pseudo_umask); + pseudo_path = pseudo_prefix_path(NULL); if (pseudo_prefix_dir_fd == -1) { if (pseudo_path) { |