+Sat Sep 20 21:17:45 CDT 2003 Adam Heath <doogie@debian.org>
+
+ * utils/md5sum.c: Fix handling of large files.
+
Sat Sep 20 20:42:35 CDT 2003 Adam Heath <doogie@debian.org>
* man/*
* Rune Schjellerup <olberd@odense.kollegienet.dk>:
Fix Danish translation of(was missing the leading space): " does not
appear to be available\n" Closes: #192972
+ * Fix md5sum when handling large files. Closes: #162691
-- Adam Heath <doogie@debian.org> UNRELEASED
int
mdfile(int fd, unsigned char **digest)
{
- ssize_t ret = fd_md5(fd, digest, -1, _("mdfile"));
+ ssize_t ret;
+ while ((ret = fd_md5(fd, digest, 100 * 1024 * 1024, _("mdfile"))) >= 0);
if ( ret >= 0 )
return 0;
else