1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[mailcap] Close also STDERR

This commit is contained in:
Witold Filipczyk 2021-08-05 17:51:10 +02:00
parent 0401fd58dc
commit b33e6cf520

View File

@ -107,8 +107,8 @@ mailcap_protocol_handler(struct connection *conn)
if (dup2(pipe_read[1], STDOUT_FILENO) < 0) {
_exit(2);
}
/* We implicitly chain stderr to ELinks' stderr. */
close_all_non_term_fd();
close(STDERR_FILENO);
if (execl("/bin/sh", "/bin/sh", "-c", script, (char *) NULL)) {
_exit(3);