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:
jbjohnso 2008-05-22 14:23:12 +00:00
parent 46134f0a75
commit 0e89580dd4

View File

@ -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) {