git: DragonFly_RELEASE_6_4 md5(1): Fix to calculate correct checksum on pseudo filesystems

Aaron LI aly at crater.dragonflybsd.org
Tue Mar 5 06:43:33 PST 2024


commit 9686f45d022e8b445161b48fa0eadaaf8ce59446
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/9686f45d022e8b445161b48fa0eadaaf8ce59446


-- 
DragonFly BSD source repository


More information about the Commits mailing list