From: Michael Tremer Date: Sat, 12 Oct 2024 16:42:15 +0000 (+0000) Subject: pty: Remove closing an unused file descriptor X-Git-Tag: 0.9.30~1069 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b37f2966db23693f191c40012f1393d81a275aa4;p=people%2Fms%2Fpakfire.git pty: Remove closing an unused file descriptor This was never used and not initialized, so it closed standard input. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/pty.c b/src/libpakfire/pty.c index 8d8607b10..f23490aa1 100644 --- a/src/libpakfire/pty.c +++ b/src/libpakfire/pty.c @@ -102,7 +102,6 @@ struct pakfire_pty { // Captured Output struct iovec output; - int outputfd; }; static int pakfire_pty_has_flag(struct pakfire_pty* pty, int flag) { @@ -978,8 +977,6 @@ static void pakfire_pty_free(struct pakfire_pty* pty) { // Output if (pty->output.iov_base) munmap(pty->output.iov_base, pty->output.iov_len); - if (pty->outputfd >= 0) - close(pty->outputfd); if (pty->loop) sd_event_unref(pty->loop);