Changed the umask of the Pandora FMS daemon.

This commit is contained in:
Ramon Novoa 2016-06-13 11:04:42 +02:00
parent a4767fca1d
commit 9663ddbe64
1 changed files with 2 additions and 2 deletions

View File

@ -318,12 +318,12 @@ sub pandora_daemonize {
}
logger ($pa_config, '[W] Stale PID file, overwriting.', 1);
}
umask 022;
umask 0022;
open (FILE, "> ".$pa_config->{'PID'}) or die "[FATAL] Cannot open PIDfile at ".$pa_config->{'PID'};
print FILE "$$";
close (FILE);
}
umask 0;
umask 0007;
}