git: tail(1): fix misbehaviour on pseudo filesystems

Daniel Fojt deef at crater.dragonflybsd.org
Wed Jun 17 00:34:50 PDT 2020


commit d02fa88ed6cf8165d3e835121e374d0879737631
Author: Daniel Fojt <df at neosystem.org>
Date:   Wed Jun 17 08:56:17 2020 +0200

    tail(1): fix misbehaviour on pseudo filesystems
    
    When processing regular zero-sized files, use display_lines() instead of
    rlines(). This fixes tail(1) behaviour with files on pseudo filesystems
    (like procfs) which are often reported to have zero size while having
    a content.
    
    Issue: https://bugs.dragonflybsd.org/issues/3034

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d02fa88ed6cf8165d3e835121e374d0879737631


-- 
DragonFly BSD source repository



More information about the Commits mailing list