From owner-freebsd-bugs Wed Sep 13 15:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CA15537B423 for ; Wed, 13 Sep 2000 15:30:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA78401; Wed, 13 Sep 2000 15:30:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 3A46237B422; Wed, 13 Sep 2000 15:27:01 -0700 (PDT) Message-Id: <20000913222701.3A46237B422@hub.freebsd.org> Date: Wed, 13 Sep 2000 15:27:01 -0700 (PDT) From: rich@math.missouri.edu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/21255: /sbin/md5 suggestion Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21255 >Category: misc >Synopsis: /sbin/md5 suggestion >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 13 15:30:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: rich winkel >Release: 4.1-release >Organization: univ of mo >Environment: FreeBSD saks 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Wed Aug 2 12:03:17 CDT 2000 root@saks:/usr/obj/usr/src/sys/saks i386 >Description: md5 -p option corrupts stdout pipe data with chksum. it would be more useful to output chksum to stderr, so one could do: tar czBf - dir|md5 -p|ssh otherhost 'md5 -p|tar xzBpf -' and get two checksums to compare, vs a "gzip: stdin: decompression OK, trailing garbage ignored" >How-To-Repeat: >Fix: diff -u /usr/src/sbin/md5/md5.c md5.c --- /usr/src/sbin/md5/md5.c Fri Dec 3 19:29:43 1999 +++ md5.c Wed Sep 13 17:12:28 2000 @@ -207,7 +207,7 @@ err(1, "stdout"); MD5Update(&context, buffer, len); } - printf("%s\n", MD5End(&context,buf)); + fprintf(stderr, "%s\n", MD5End(&context,buf)); } static void >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message