Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2001 17:24:23 -0700 (PDT)
From:      Archie Cobbs <archie@packetdesign.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/27524: md5 -q does nothing
Message-ID:  <200105220024.f4M0ON569301@bubba.packetdesign.com>

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


>Number:         27524
>Category:       bin
>Synopsis:       md5 -q does nothing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 21 17:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Archie Cobbs
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Packet Design
>Environment:
System: FreeBSD bubba.packetdesign.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Thu Apr 26 15:28:39 PDT 2001 root@bubba.packetdesign.com:/usr/obj/usr/src/sys/BUBBA i386


>Description:

	Running "md5 -q" does nothing. What it should do (I think)
	is read from standard input and print the md5 checksum.

>How-To-Repeat:

	$ /sbin/md5 -q
	$

>Fix:

	The logic in mc5.c is broken:

        if (argc > 1) {
                while ((ch = getopt(argc, argv, "ps:qrtx")) != -1) {
                        switch (ch) {
		....
	} else
		...

	Flags should be subtracted from "argc" before the test
	"if (argc > 1) {" is performed.

>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?200105220024.f4M0ON569301>