2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Close all fd's before executing editor.

This commit is contained in:
Todd C. Miller
2005-11-11 22:19:53 +00:00
parent 69c627658f
commit 0b3b32ab9a

View File

@@ -650,6 +650,9 @@ run_command(path, argv)
break; /* NOTREACHED */
case 0:
(void) sigprocmask(SIG_SETMASK, &oset, NULL);
sudo_endpwent();
sudo_endgrent();
closefrom(STDERR_FILENO + 1);
execv(path, argv);
warning("unable to run %s", path);
_exit(127);