+Thu May 6 23:57:52 BST 2004 Andrew Shugg <andrew@neep.com.au>
+
+ * utils/md5sum.c: Add support for DOS line-endings (\r\n).
+
Thu May 6 23:52:28 BST 2004 Daniel Kobras <kobras@debian.org>
* archtable: Add ia64-unknown-linux-gnu.
casing. Closes: #154422.
* Fix segfault when "gcc -dumpmachine" returns a non-matching triplet.
Closes: #211850.
+ * Add support for DOS line-endings to md5sum. Closes: #246103.
* Correct 'n' and 'p' key descriptions in dselect help message.
Closes: #120562.
* Stop hardcoding the list of manual page languages in debian/rules,
/* Strip the trailing newline, if present */
if (p[i-1] == '\n')
- p[i-1] = '\0';
+ if (p[i-2] == '\r')
+ if (i < 3)
+ return 0;
+
+ p[i-2] = '\0';
+ else
+ p[i-1] = '\0';
+ }
strcpy(file, p);
return rc;