diff mbox

[ibacm] ibacm: Remove umask(0)

Message ID 1828884A29C6694DAF28B7E6B8A8237346AA40BB@ORSMSX101.amr.corp.intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Hefty, Sean Oct. 10, 2012, 3:55 p.m. UTC
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 |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/acm.c b/src/acm.c
index 00fc35d..725cde2 100644
--- 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);