From 11d3e3a4168ae95909856be29e0ddbffca54c479 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 22 Jun 2021 15:48:57 +0200 Subject: [PATCH] Don't close the credits buffer file descriptor too early Gbp-Pq: Name 0040-Don-t-close-the-credits-buffer-file-descriptor-too-e.patch --- ext/standard/credits.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/standard/credits.c b/ext/standard/credits.c index 8ea0f5b9..1103bea2 100644 --- a/ext/standard/credits.c +++ b/ext/standard/credits.c @@ -216,7 +216,6 @@ PHPAPI void php_print_packaging_credits(int flag, int top) /* {{{ */ if (fd > 0) { bytes = read(fd, buf, sizeof(buf) - 1); - close(fd); } if (bytes > 0) { @@ -270,6 +269,9 @@ PHPAPI void php_print_packaging_credits(int flag, int top) /* {{{ */ "DEB.SURY.ORG ."); } } + if (fd > 0) { + close(fd); + } php_info_print_table_end(); break; case DEBIAN: -- 2.30.2