Change the perms of the file to be 0640, not 0666.
This commit was SVN r5940.
Этот коммит содержится в:
родитель
207032a10e
Коммит
620e55516e
@ -257,10 +257,10 @@ int main(int argc, char *argv[])
|
|||||||
close(orted_globals.uri_pipe);
|
close(orted_globals.uri_pipe);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* setup stdin/stdout/stderr */
|
/* setup stdout/stderr */
|
||||||
if (orted_globals.debug_daemons_file) {
|
if (orted_globals.debug_daemons_file) {
|
||||||
/* if we are debugging to a file, then send stdin/stdout/stderr
|
/* if we are debugging to a file, then send stdout/stderr to
|
||||||
* to the orted log file
|
* the orted log file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* get my jobid */
|
/* get my jobid */
|
||||||
@ -279,7 +279,7 @@ int main(int argc, char *argv[])
|
|||||||
log_file,
|
log_file,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
fd = open(log_path, O_RDWR|O_CREAT|O_TRUNC, 0666);
|
fd = open(log_path, O_RDWR|O_CREAT|O_TRUNC, 0640);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
/* couldn't open the file for some reason, so
|
/* couldn't open the file for some reason, so
|
||||||
* just connect everything to /dev/null
|
* just connect everything to /dev/null
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user