Ticket #146: openrc-0.4.1-umask.patch
File openrc-0.4.1-umask.patch, 602 bytes (added by douglas@openplans.org, 19 months ago) |
---|
-
src/rc/start-stop-daemon.c
diff -ru openrc-0.4.1-orig/src/rc/start-stop-daemon.c openrc-0.4.1-modified/src/rc/start-stop-daemon.c
old new 1037 1037 pid_t mypid = getpid(); 1038 1038 if (setumask) 1039 1039 umask(numask); 1040 else 1041 umask(022); 1040 1042 1041 1043 #ifdef TIOCNOTTY 1042 1044 tty_fd = open("/dev/tty", O_RDWR); … … 1170 1172 setenv("PATH", newpath, 1); 1171 1173 } 1172 1174 1173 umask(022);1174 1175 1175 stdout_fd = devnull_fd; 1176 1176 stderr_fd = devnull_fd; 1177 1177 if (redirect_stdout) {