Bug#1042755: patch: doesn't respect first EOF

2023-07-31 Thread наб
Control: tags -1 + patch Trivially found with (gdb) bt #0 0x77ec807d in __GI___libc_read (fd=0, buf=0x555862a0, nbytes=8192) at ../sysdeps/unix/sysv/linux/read.c:26 #1 0x77e51130 in __GI__IO_file_xsgetn (fp=0x77fa2a80 <_IO_2_1_stdin_>, data=, n=8192) at ./libio/libioP.h

Bug#1042755: patch: doesn't respect first EOF

2023-07-31 Thread наб
Package: diffutils Version: 1:3.8-4 Severity: normal Dear Maintainer, Old issue, just annoyed with it enough now to post: patch keeps reading when it got a zero-sized read, and needs two subsequent zero-sized reads to actually apply the patch. There's precisely no point to this (files and pipes