Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2009-04-03 13:36:14 +0000 (Fri, 03 Apr 2009)
Committed patch for BZ#229 (http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=229)
Thanks to Kostas Georgiou.
--- trunk/monitor-core/lib/daemon_init.c 2009-03-09 09:39:49 UTC (rev 1985)
+++ trunk/monitor-core/lib/daemon_init.c 2009-04-03 13:36:14 UTC (rev 1986)
@@ -74,6 +74,7 @@
+ mode_t prev_umask;
pid = fork();
@@ -92,7 +93,9 @@
i = chdir ("/"); /* change working directory */
- umask (0); /* clear our file mode creation mask */
+ /* set our file mode creation mask */
+ prev_umask = umask(022);
+ umask( prev_umask | 022);
for (i = 0; i < MAXFD; i++)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: