git: wc(1): Ignore zero st_size to work on pseudo-filesystems

Aaron LI aly at crater.dragonflybsd.org
Tue Mar 5 17:26:42 PST 2024


commit 5f8e6ce5f120e62b36da3f8b1f077948c821e498
Author: Ricardo Branco <rbranco at suse.de>
Date:   Sun Mar 3 23:06:00 2024 +0100

    wc(1): Ignore zero st_size to work on pseudo-filesystems
    
    Without this fix, 'wc -c' was failing on pseudo-filesystems, for example:
    wc -c /proc/$$/status
    
    GitHub PR: https://github.com/DragonFlyBSD/DragonFlyBSD/pull/19

Summary of changes:
 usr.bin/wc/wc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5f8e6ce5f120e62b36da3f8b1f077948c821e498


-- 
DragonFly BSD source repository


More information about the Commits mailing list