From: Ondřej Surý Date: Tue, 22 Jun 2021 13:48:57 +0000 (+0200) Subject: Don't close the credits buffer file descriptor too early X-Git-Tag: archive/raspbian/8.2.23-1+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=028382b425f8c4759bfe1e1f338469d9d385b36c;p=php8.2.git 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 --- 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: