From f377e6f4afd8b40401feeb6652ec8b1ecf856593 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 9 May 2006 09:42:00 +0200 Subject: [PATCH] copiousoutput: only mark /dev/fd/%d as popen data . I reflect if ELinks may run out of fds --- src/protocol/file/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/file/file.c b/src/protocol/file/file.c index bba03488..edbd2b76 100644 --- a/src/protocol/file/file.c +++ b/src/protocol/file/file.c @@ -213,7 +213,7 @@ read_special(struct connection *conn, int fd) return; } conn->socket->fd = fd; - conn->popen = 1; + if (fd != STDIN_FILENO) conn->popen = 1; rb = alloc_read_buffer(conn->socket); if (!rb) { abort_connection(conn, S_OUT_OF_MEM);