NetBSD Problem Report #57854

From www@netbsd.org  Sun Jan 14 16:39:22 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 36C2A1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Jan 2024 16:39:22 +0000 (UTC)
Message-Id: <20240114163920.F00091A9239@mollari.NetBSD.org>
Date: Sun, 14 Jan 2024 16:39:20 +0000 (UTC)
From: rbranco@suse.de
Reply-To: rbranco@suse.de
To: gnats-bugs@NetBSD.org
Subject: wc(1) fails to read files on pseudo-filesystems with the -c option
X-Send-Pr-Version: www-1.0

>Number:         57854
>Category:       bin
>Synopsis:       wc(1) fails to read files on pseudo-filesystems with the -c option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 14 16:40:00 +0000 2024
>Last-Modified:  Sun Jan 14 17:20:01 +0000 2024
>Originator:     Ricardo Branco
>Release:        NetBSD 10.0_RC2
>Organization:
>Environment:
>Description:
wc(1) fails to read files on pseudo-filesystems with the -c option


>How-To-Repeat:
To reproduce:

```
$ wc -c /proc/cpuinfo
0
```
>Fix:
https://github.com/NetBSD/src/pull/22

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

 Module Name:	src
 Committed By:	christos
 Date:		Sun Jan 14 17:16:10 UTC 2024

 Modified Files:
 	src/usr.bin/wc: wc.c

 Log Message:
 PR/57854: Richardo Branco: wc -c does not work on procfs/kernfs


 To generate a diff of this commit:
 cvs rdiff -u -r1.35 -r1.36 src/usr.bin/wc/wc.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.