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:
parent
70976f30ea
commit
90c6ace770
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user