* we really shouldn't be setting umask(0), since that's going to make files
world writable by default. We shouldn't be setting the umask, period, unless we restore it before we fork off the user's process. Since we don't have a way of doing that now, just leave the umask alone. This should go to the v1.0 branch This commit was SVN r8935.
Этот коммит содержится в:
родитель
0775c88a9b
Коммит
6bf7567639
@ -59,8 +59,6 @@ int opal_daemon_init(char *working_dir)
|
||||
chdir(working_dir); /* change working directory */
|
||||
}
|
||||
|
||||
umask(0); /* clear file mode creation mask */
|
||||
|
||||
/* connect input to /dev/null */
|
||||
fd = open("/dev/null", O_RDONLY);
|
||||
if(fd > STDIN_FILENO) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user