Просмотр исходного кода

When parsing stdin, md5sum now displays '-' as the filename, to match
textutils md5sum.

Adam Heath лет назад: 24
Родитель
Сommit
691b00263a
3 измененных файлов с 8 добавлено и 1 удалено
  1. 5 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 1 1
      utils/md5sum.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+Wed Nov 28 17:30:16 CST 2001 Adam Heath <doogie@debian.org>
+
+  * utils/md5sum.c: When parsing stdin, md5sum now displays '-' as the
+    filename, to match textutils md5sum.
+
 Wed Nov 28 17:20:28 CST 2001 Adam Heath <doogie@debian.org>
 
   * scripts/install-info.pl: Copy dir from backup if the file is empty

+ 2 - 0
debian/changelog

@@ -55,6 +55,8 @@ dpkg (1.10) unstable; urgency=low
     * --calign|--align|--maxwidth are now ignored.
   * strip enoent as well. Closes: Bug#112378
   * Fix format error in Dutch translation. Closes: Bug#113120
+  * When parsing stdin, md5sum now displays '-' as the filename, to match
+    textutils md5sum.  Closes: #121489.
 
  -- Wichert Akkerman <wakkerma@debian.org>  Mon, 20 Aug 2001 14:54:38 +0200
 

+ 1 - 1
utils/md5sum.c

@@ -127,7 +127,7 @@ main(int argc, char **argv)
 		push_error_handler(&ejbuf, print_md5sum_error, "stdin");
 
 		mdfile(fileno(stdin), &digest);
-		printf("%s\n", digest);
+		printf("%s %c-\n", digest, bin_mode ? '*' : ' ');
 		set_error_display(0, 0);
 		error_unwind(ehflag_normaltidy);
 		exit(0);