Only checksum stdin if nothing has been checksummed yet.

PR:		bin/28386
This commit is contained in:
Ruslan Ermilov 2001-06-25 08:52:57 +00:00
parent 7a507517de
commit 085d234587
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78756

View File

@ -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);