git: DragonFly_RELEASE_6_4 md5(1): Warn on read errors

Aaron LI aly at crater.dragonflybsd.org
Mon Feb 16 05:48:34 PST 2026


commit 33f37643f66bc4ef1cb6eea919bd23247cd43b15
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Feb 16 21:38:34 2026 +0800

    md5(1): Warn on read errors
    
    md5(1) previously did not report read errors.  As a result, attempting
    to hash a directory produced no output and only returned exit code 66.
    
    Make md5(1) print a warning when a file cannot be read.
    
    Before:
        $ md5 /
        (no output; only exit code 66)
    
    After:
        $ md5 /
        md5: can't read /: Is a directory

Summary of changes:
 sbin/md5/md5.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/33f37643f66bc4ef1cb6eea919bd23247cd43b15


-- 
DragonFly BSD source repository


More information about the Commits mailing list