(pipe_execv): use closefrom

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14780 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-04-13 08:05:03 +00:00
parent fe3cbd31f3
commit d15c9d7cc6

View File

@@ -197,6 +197,8 @@ pipe_execv(FILE **stdin_fd, FILE **stdout_fd, FILE **stderr_fd,
close(err_fd[1]);
}
closefrom(2);
execv(file, argv);
exit((errno == ENOENT) ? EX_NOTFOUND : EX_NOEXEC);
case -1: