From fce253253a13f8aa010429443708043ea6d9d361 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sun, 24 Aug 2008 11:27:38 +0530 Subject: Set umask before mkstemp() for some versions of glibc --- src/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon.c') diff --git a/src/daemon.c b/src/daemon.c index 4d4aedc..f0b0aba 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -42,7 +42,7 @@ makedaemon(void) exit(0); chdir("/"); - umask(077); + umask(0177); #if NDEBUG /* -- cgit v1.2.3