git: tail(1): Fix '-r' (reverse) to work on pseudo filesystems

Aaron LI aly at crater.dragonflybsd.org
Mon Mar 16 19:59:41 PDT 2026


commit 388588cfb81ee391b92eda14679949c8a8e3b596
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Mar 17 10:51:19 2026 +0800

    tail(1): Fix '-r' (reverse) to work on pseudo filesystems
    
    Pseudo filesystems (e.g., procfs) advertize a zero file size.  Fix
    reverse() to handle such a case so that '-r' works on pseudo
    filesystems.

Summary of changes:
 usr.bin/tail/reverse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/388588cfb81ee391b92eda14679949c8a8e3b596


-- 
DragonFly BSD source repository


More information about the Commits mailing list