2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 05:48:18 +00:00

Add missing call to save_signals().

This commit is contained in:
Todd C. Miller 2013-01-13 15:24:12 -05:00
parent 70976f30ea
commit 90c6ace770

View File

@ -167,9 +167,10 @@ main(int argc, char *argv[], char *envp[])
/* Make sure we are setuid root. */
sudo_check_suid(argv[0]);
/* Reset signal mask and make sure fds 0-2 are open. */
/* Reset signal mask, save signal state and make sure fds 0-2 are open. */
(void) sigemptyset(&mask);
(void) sigprocmask(SIG_SETMASK, &mask, NULL);
save_signals();
fix_fds();
/* Read sudo.conf. */