don't close stderr, close all fd that is num 3 and larger

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14782 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-04-13 11:39:00 +00:00
parent a3cd0311be
commit 043e2fb6c6

View File

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