From 0655b86a6ebc6f1324810d504a71803aa708d162 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 28 Nov 2016 17:11:18 +0000 Subject: head: fix processing of non-seekable input as seekable * src/head.c (elide_tail_bytes_file): Ensure we don't use st_size unless we've previously used seek() to determine the CURRENT_POS in the seekable file. This was seen to cause issue on FreeBSD 11 when the pipe buffer was filled with `yes | head --lines=-0`, in which case st_size was 64KiB while ST_BLKSIZE() was 4KiB. Reported by Assaf Gordon. --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index e88e93214..ea84a4dba 100644 --- a/NEWS +++ b/NEWS @@ -25,6 +25,10 @@ GNU coreutils NEWS -*- outline -*- factor again outputs immediately when numbers are input interactively. [bug introduced in coreutils-8.24] + head no longer tries to process non-seekable input as seekable, + which resulted in failures on FreeBSD 11 at least. + [bug introduced in coreutils-8.24] + install -DZ and mkdir -pZ now set default SELinux context correctly even if two or more directories nested in each other are created and each of them defaults to a different SELinux context. -- cgit v1.2.3-70-g09d2