pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/php81/patches lang/php80: forgot to add a file
details: https://anonhg.NetBSD.org/pkgsrc/rev/0c92c218d88c
branches: trunk
changeset: 379692:0c92c218d88c
user: taca <taca%pkgsrc.org@localhost>
date: Sat May 21 16:01:40 2022 +0000
description:
lang/php80: forgot to add a file
Oops, forgot to add a patch file.
diffstat:
lang/php81/patches/patch-main_streams_streams.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r d529f62c68b9 -r 0c92c218d88c lang/php81/patches/patch-main_streams_streams.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php81/patches/patch-main_streams_streams.c Sat May 21 16:01:40 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-main_streams_streams.c,v 1.1 2022/05/21 16:01:40 taca Exp $
+
+* Allow copying files with size zero.
+
+--- main/streams/streams.c.orig 2022-05-11 01:14:18.000000000 +0000
++++ main/streams/streams.c
+@@ -1584,10 +1584,8 @@ PHPAPI int _php_stream_copy_to_stream_ex
+
+ *len = haveread += didwrite;
+
+- /* we've got at least 1 byte to read
+- * less than 1 is an error
+- * AND read bytes match written */
+- if (mapped == 0 || mapped != didwrite) {
++ /* read bytes match written */
++ if (mapped != didwrite) {
+ return FAILURE;
+ }
+ if (mapped < chunk_size) {
Home |
Main Index |
Thread Index |
Old Index