Fix problem where files were created world writable by default
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1480 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
46134f0a75
commit
0e89580dd4
@ -117,7 +117,7 @@ $SIG{PIPE} = sub { die "SIGPIPE $$progname encountered a broken pipe (probably C
|
||||
$progname = \$0;
|
||||
sub daemonize {
|
||||
chdir('/');
|
||||
umask 0;
|
||||
umask 0022;
|
||||
my $pid;
|
||||
defined($pid = xCAT::Utils->xfork) or die "Can't fork: $!";
|
||||
if ($pid) {
|
||||
|
Loading…
Reference in New Issue
Block a user