Changeset 1791 for zzuf/trunk/src/zzuf.c
- Timestamp:
- Jul 6, 2007, 3:40:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/zzuf.c
r1762 r1791 158 158 #endif 159 159 #define OPTSTR OPTSTR_REGEX OPTSTR_RLIMIT \ 160 "Ab:B:C:dD:f:F:imn P:qr:R:s:ST:vxhV"160 "Ab:B:C:dD:f:F:imnp:P:qr:R:s:ST:vxhV" 161 161 #define MOREINFO "Try `%s --help' for more information.\n" 162 162 int option_index = 0; … … 185 185 { "max-memory", 1, NULL, 'M' }, 186 186 { "network", 0, NULL, 'n' }, 187 { "pick", 1, NULL, 'p' }, 187 188 { "protect", 1, NULL, 'P' }, 188 189 { "quiet", 0, NULL, 'q' }, … … 275 276 setenv("ZZUF_NETWORK", "1", 1); 276 277 break; 278 case 'p': /* --pick */ 279 opts->pick = myoptarg; 280 break; 277 281 case 'P': /* --protect */ 278 282 opts->protect = myoptarg; … … 376 380 if(opts->bytes) 377 381 setenv("ZZUF_BYTES", opts->bytes, 1); 382 if(opts->pick) 383 setenv("ZZUF_PICK", opts->pick, 1); 378 384 if(opts->protect) 379 385 setenv("ZZUF_PROTECT", opts->protect, 1); … … 428 434 if(opts->bytes) 429 435 _zz_bytes(opts->bytes); 436 if(opts->pick) 437 _zz_pick(opts->pick); 430 438 if(opts->protect) 431 439 _zz_protect(opts->protect); … … 1086 1094 #endif 1087 1095 #if defined HAVE_REGEX_H 1096 printf(" [-p descriptors] [-I include] [-E exclude]\n"); 1097 printf(" [PROGRAM [--] [ARGS]...]\n"); 1098 #else 1088 1099 printf(" [-I include] [-E exclude] [PROGRAM [--] [ARGS]...]\n"); 1089 #else1090 printf(" [PROGRAM [--] [ARGS]...]\n");1091 1100 #endif 1092 1101 printf(" zzuf -h | --help\n"); … … 1118 1127 #endif 1119 1128 printf(" -n, --network fuzz network input\n"); 1129 printf(" -p, --pick <list> only fuzz Nth descriptor with N in <list>\n"); 1120 1130 printf(" -P, --protect <list> protect bytes and characters in <list>\n"); 1121 1131 printf(" -q, --quiet do not print children's messages\n");
Note: See TracChangeset
for help on using the changeset viewer.