Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2000 15:27:01 -0700 (PDT)
From:      rich@math.missouri.edu
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/21255: /sbin/md5 suggestion
Message-ID:  <20000913222701.3A46237B422@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000913222701.3A46237B422>