mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 15:55:40 +00:00
Close all fd's before executing editor.
This commit is contained in:
3
visudo.c
3
visudo.c
@@ -650,6 +650,9 @@ run_command(path, argv)
|
|||||||
break; /* NOTREACHED */
|
break; /* NOTREACHED */
|
||||||
case 0:
|
case 0:
|
||||||
(void) sigprocmask(SIG_SETMASK, &oset, NULL);
|
(void) sigprocmask(SIG_SETMASK, &oset, NULL);
|
||||||
|
sudo_endpwent();
|
||||||
|
sudo_endgrent();
|
||||||
|
closefrom(STDERR_FILENO + 1);
|
||||||
execv(path, argv);
|
execv(path, argv);
|
||||||
warning("unable to run %s", path);
|
warning("unable to run %s", path);
|
||||||
_exit(127);
|
_exit(127);
|
||||||
|
Reference in New Issue
Block a user