ibacm: Remove umask(0)
authorSean Hefty <sean.hefty@intel.com>
Tue, 9 Oct 2012 18:33:27 +0000 (11:33 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 9 Oct 2012 18:33:27 +0000 (11:33 -0700)
This causes ibacm files to be created as world writable.

Problem reported by Florian Weimer <fweimer@redhat.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c

index 00fc35d..725cde2 100644 (file)
--- a/src/acm.c
+++ b/src/acm.c
@@ -3182,8 +3182,6 @@ static void daemonize(void)
        if (pid)
                exit(pid < 0);
 
-       umask(0);
-
        sid = setsid();
        if (sid < 0)
                exit(1);