| Summary: | md5 -q does nothing | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Archie Cobbs <archie> |
| Component: | bin | Assignee: | ru <ru> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.3-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->analyzed Fixed in 5.0-CURRENT. Responsible Changed From-To: freebsd-bugs->ru Mine. State Changed From-To: analyzed->closed Fixed in 4.3-STABLE. |
Running "md5 -q" does nothing. What it should do (I think) is read from standard input and print the md5 checksum. 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. How-To-Repeat: $ /sbin/md5 -q $