git: w(1) - Do not warn about non-existent tty lines

Aaron LI aly at crater.dragonflybsd.org
Thu Oct 1 18:44:07 PDT 2026


commit 48147b0412421299a3fe9cec768ddbe787aabcbe
Author: David Bidner <david at crap.solutions>
Date:   Sun Sep 27 19:51:41 2026 +0200

    w(1) - Do not warn about non-existent tty lines
    
    ttystat() called warn() when stat("/dev/<line>") failed, so X11 sessions
    (ut_line like ":16") printed a spurious
    "w: /dev/:16: No such file or directory".
    
    Return NULL silently unless the line is an existing character device.
    Matches FreeBSD (see commits 21632754d652d20a4618cac0b52ebe7d8e790865,
    d0d0355e4dd9fa060443d3f1b1a223118ff68827).
    
    Fixes #3298

Summary of changes:
 usr.bin/w/w.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/48147b0412421299a3fe9cec768ddbe787aabcbe


-- 
DragonFly BSD source repository


More information about the Commits mailing list