Only checksum stdin if nothing has been checksummed yet.
PR: bin/28386
This commit is contained in:
parent
7a507517de
commit
085d234587
@ -62,7 +62,7 @@ main(int argc, char *argv[])
|
||||
char *p;
|
||||
char buf[33];
|
||||
|
||||
while ((ch = getopt(argc, argv, "ps:qrtx")) != -1)
|
||||
while ((ch = getopt(argc, argv, "pqrs:tx")) != -1)
|
||||
switch (ch) {
|
||||
case 'p':
|
||||
MDFilter(1);
|
||||
@ -101,7 +101,7 @@ main(int argc, char *argv[])
|
||||
else
|
||||
printf("MD5 (%s) = %s\n", *argv, p);
|
||||
} while (*++argv);
|
||||
} else
|
||||
} else if (optind == 1 || qflag || rflag)
|
||||
MDFilter(0);
|
||||
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user