diff --git a/doc/zzuf.1 b/doc/zzuf.1 index 4c9f76f..5b066ef 100644 --- a/doc/zzuf.1 +++ b/doc/zzuf.1 @@ -6,7 +6,7 @@ zzuf \- multiple purpose fuzzer .br [\fB\-F\fR \fIforks\fR] [\fB\-C\fR \fIcrashes\fR] [\fB\-B\fR \fIbytes\fR] [\fB\-T\fR \fIseconds\fR] .br - [\fB\-P\fR \fIlist\fR] [\fB\-R\fR \fIlist\fR] + [\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR] .br [\fB\-I\fR \fIinclude\fR] [\fB\-E\fR \fIexclude\fR] \fIPROGRAM\fR [\fIARGS\fR]... .br @@ -120,7 +120,7 @@ backslash (\(oq\\\(cq) .RE .IP You can use \(oq\fB-\fR\(cq to specify ranges. For instance, to protect all -bytes from '\\001' to '/', use \(oq\fB\-P\ \(dq\\001-/\(dq\fR\(cq. +bytes from \(oq\\001\(cq to \(oq/\(cq, use \(oq\fB\-P\ \(dq\\001-/\(dq\fR\(cq. The statistical outcome of this option should not be overlooked: if characters are protected, the effect of the \(oq\fB\-r\fR\(cq flag will vary depending diff --git a/src/zzuf.c b/src/zzuf.c index 5cb578b..9ab7bc3 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -565,12 +565,17 @@ static void version(void) #if defined(HAVE_GETOPT_H) static void usage(void) { - printf("Usage: zzuf [ -cdinqS ] [ -r ratio ] [ -s seed | -s start:stop ]\n"); - printf(" [ -F forks ] [ -C crashes ] [ -B bytes ] [ -T seconds ]\n"); - printf(" [ -P protect ] [ -R refuse ]\n"); - printf(" [ -I include ] [ -E exclude ] COMMAND [ARGS]...\n"); + printf("Usage: zzuf [-cdinqS] [-r ratio] [-s seed | -s start:stop]\n"); + printf(" [-F forks] [-C crashes] [-B bytes] [-T seconds]\n"); + printf(" [-P protect] [-R refuse]\n"); + printf(" [-I include] [-E exclude] COMMAND [ARGS]...\n"); +# ifdef HAVE_GETOPT_LONG + printf(" zzuf -h | --help\n"); + printf(" zzuf -v | --version\n"); +# else printf(" zzuf -h\n"); printf(" zzuf -v\n"); +# endif printf("Run COMMAND and randomly fuzz its input.\n"); printf("\n"); printf("Mandatory arguments to long options are mandatory for short options too.\n");