From 7557e335bd409603def9c391fd35224faee727ba Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 5 Jan 2007 08:01:06 +0000 Subject: [PATCH] * Change -N to -n for --network. --- doc/zzuf.1 | 4 ++-- src/zzuf.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/zzuf.1 b/doc/zzuf.1 index d8ce87a..59ce7ba 100644 --- a/doc/zzuf.1 +++ b/doc/zzuf.1 @@ -2,7 +2,7 @@ .SH NAME zzuf \- multiple purpose fuzzer .SH SYNOPSIS -\fBzzuf\fR [\fB\-cdiNqS\fR] [\fB\-r\fR \fIratio\fR] [\fB\-s\fR \fIseed\fR | \fB\-s\fR \fIstart:stop\fR] +\fBzzuf\fR [\fB\-cdinqS\fR] [\fB\-r\fR \fIratio\fR] [\fB\-s\fR \fIseed\fR | \fB\-s\fR \fIstart:stop\fR] .br [\fB\-F\fR \fIchildren\fR] [\fB\-B\fR \fIbytes\fR] [\fB\-T\fR \fIseconds\fR] .br @@ -77,7 +77,7 @@ and you only want specific files to be fuzzed. 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\-N\fR, \fB\-\-network\fR +\fB\-n\fR, \fB\-\-network\fR Fuzz the application's network input. By default \fBzzuf\fR only fuzzes files. .TP \fB\-P\fR, \fB\-\-protect\fR=\fIlist\fR diff --git a/src/zzuf.c b/src/zzuf.c index 12d973e..47d468a 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -110,7 +110,7 @@ int main(int argc, char *argv[]) { "help", 0, NULL, 'h' }, { "stdin", 0, NULL, 'i' }, { "include", 1, NULL, 'I' }, - { "network", 1, NULL, 'N' }, + { "network", 0, NULL, 'n' }, { "protect", 1, NULL, 'P' }, { "quiet", 0, NULL, 'q' }, { "ratio", 1, NULL, 'r' }, @@ -120,11 +120,11 @@ int main(int argc, char *argv[]) { "max-time", 1, NULL, 'T' }, { "version", 0, NULL, 'v' }, }; - int c = getopt_long(argc, argv, "B:cdE:F:hiI:NP:qr:R:s:ST:v", + int c = getopt_long(argc, argv, "B:cdE:F:hiI:nP:qr:R:s:ST:v", long_options, &option_index); # else # define MOREINFO "Try `%s -h' for more information.\n" - int c = getopt(argc, argv, "B:cdE:F:hiI:NP:qr:R:s:ST:v"); + int c = getopt(argc, argv, "B:cdE:F:hiI:nP:qr:R:s:ST:v"); # endif if(c == -1) break; @@ -153,7 +153,7 @@ int main(int argc, char *argv[]) case 'i': /* --stdin */ setenv("ZZUF_STDIN", "1", 1); break; - case 'N': /* --network */ + case 'n': /* --network */ setenv("ZZUF_NETWORK", "1", 1); break; case 's': /* --seed */ @@ -553,7 +553,7 @@ 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("Usage: zzuf [ -cdinqS ] [ -r ratio ] [ -s seed | -s start:stop ]\n"); printf(" [ -F children ] [ -B bytes ] [ -T seconds ]\n"); printf(" [ -P protect ] [ -R refuse ]\n"); printf(" [ -I include ] [ -E exclude ] COMMAND [ARGS]...\n"); @@ -570,7 +570,7 @@ static void usage(void) printf(" -F, --fork number of concurrent children (default 1)\n"); printf(" -i, --stdin fuzz standard input\n"); printf(" -I, --include only fuzz files matching \n"); - printf(" -N, --network fuzz network input\n"); + printf(" -n, --network fuzz network input\n"); printf(" -P, --protect protect bytes and characters in \n"); printf(" -q, --quiet do not print children's messages\n"); printf(" -r, --ratio bit fuzzing ratio (default 0.004)\n"); @@ -589,7 +589,7 @@ static void usage(void) printf(" -F number of concurrent forks (default 1)\n"); printf(" -i fuzz standard input\n"); printf(" -I only fuzz files matching \n"); - printf(" -N fuzz network input\n"); + printf(" -n fuzz network input\n"); printf(" -P protect bytes and characters in \n"); printf(" -q do not print the fuzzed application's messages\n"); printf(" -r bit fuzzing ratio (default 0.004)\n");