git: md5(1): Fix to calculate correct checksum on pseudo filesystems
Aaron LI
aly at crater.dragonflybsd.org
Tue Mar 5 06:42:11 PST 2024
commit 79549f81648d18a11ea78142c472eeda115b6ca5
Author: Ricardo Branco <rbranco at suse.de>
Date: Sun Mar 3 23:00:59 2024 +0100
md5(1): Fix to calculate correct checksum on pseudo filesystems
The file size (st_size) on pseudo filesystems can be zero and
meaningless, so ignore it and read until EOF to get the whole contents.
Now md5(1) is able to calculate the correct checksums for files on
pseudo filesystems, like /proc.
Summary of changes:
sbin/md5/md5.c | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/79549f81648d18a11ea78142c472eeda115b6ca5
--
DragonFly BSD source repository
More information about the Commits
mailing list