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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user