git: md5(1): Warn on read errors
Aaron LI
aly at crater.dragonflybsd.org
Mon Feb 16 05:46:49 PST 2026
commit 46fc87e7afa10b17d826e6d87dfc522f79b28a39
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/46fc87e7afa10b17d826e6d87dfc522f79b28a39
--
DragonFly BSD source repository
More information about the Commits
mailing list