* Changed --md5 to only compute the standard output.

This commit is contained in:
Sam Hocevar
2007-01-08 17:54:16 +00:00
committed by sam
parent 5ba521a706
commit 327ebe24c5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ Multiple \fB\-I\fR flags can be specified, in which case files matching any one
of the regular expressions will be fuzzed. See also the \fB\-c\fR flag.
.TP
\fB\-M\fR, \fB\-\-md5\fR
Instead of displaying the program's output, just print the MD5 digest of that
output.
Instead of displaying the program's standard output, just print the MD5 digest
of that output. The standard error channel is left untouched.
.TP
\fB\-n\fR, \fB\-\-network\fR
Fuzz the application's network input. By default \fBzzuf\fR only fuzzes files.
+1 -1
View File
@@ -592,7 +592,7 @@ static void read_children(void)
if(j != 0)
child_list[i].bytes += ret;
if(md5 && j > 0)
if(md5 && j == 2)
_zz_md5_add(child_list[i].ctx, buf, ret);
else if(!quiet || j == 0)
write((j < 2) ? STDERR_FILENO : STDOUT_FILENO, buf, ret);