NetBSD Problem Report #57850

From www@netbsd.org  Sun Jan 14 15:42:33 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DDD3D1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Jan 2024 15:42:33 +0000 (UTC)
Message-Id: <20240114154232.6E0A41A9239@mollari.NetBSD.org>
Date: Sun, 14 Jan 2024 15:42:32 +0000 (UTC)
From: rbranco@suse.de
Reply-To: rbranco@suse.de
To: gnats-bugs@NetBSD.org
Subject: [patch] tail(1) is not able to operate on files residing in pseudo-filesystems
X-Send-Pr-Version: www-1.0

>Number:         57850
>Category:       bin
>Synopsis:       [patch] tail(1) is not able to operate on files residing in pseudo-filesystems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 14 15:45:00 +0000 2024
>Last-Modified:  Sun Jan 14 17:40:01 +0000 2024
>Originator:     Ricardo Branco
>Release:        NetBSD 10.0_RC2
>Organization:
>Environment:
>Description:
tail(1) is not able to operate on files residing in pseudo-filesystems or others that advertise a zero size.

Fixed in FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276107
>How-To-Repeat:
To reproduce: `tail -1 /proc/mounts` dumps the whole file.
>Fix:
https://github.com/NetBSD/src/pull/20

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57850 CVS commit: src/usr.bin/tail
Date: Sun, 14 Jan 2024 12:37:32 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Sun Jan 14 17:37:32 UTC 2024

 Modified Files:
 	src/usr.bin/tail: forward.c

 Log Message:
 PR/57850: Ricardo Branco: tail does not work in some pseudo-filesystems
 From FreeBSD: https://github.com/NetBSD/src/pull/20


 To generate a diff of this commit:
 cvs rdiff -u -r1.33 -r1.34 src/usr.bin/tail/forward.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.