Changeset 1742 for zzuf/trunk


Ignore:
Timestamp:
Feb 9, 2007, 12:08:38 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Disable -M when setrlimit isn't available.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/zzuf.c

    r1741 r1742  
    148148    {
    149149#if defined HAVE_REGEX_H
    150 #   define OPTSTR "Ab:B:cC:dD:E:f:F:iI:mM:nP:qr:R:s:ST:vxhV"
     150#   define OPTSTR_REGEX "cE:I:"
    151151#else
    152 #   define OPTSTR "Ab:B:C:dD:f:F:imM:nP:qr:R:s:ST:vxhV"
    153 #endif
     152#   define OPTSTR_REGEX ""
     153#endif
     154#if defined HAVE_SETRLIMIT
     155#   define OPTSTR_RLIMIT "M:"
     156#else
     157#   define OPTSTR_RLIMIT ""
     158#endif
     159#define OPTSTR OPTSTR_REGEX OPTSTR_RLIMIT \
     160            "Ab:B:C:dD:f:F:imnP:qr:R:s:ST:vxhV"
    154161#define MOREINFO "Try `%s --help' for more information.\n"
    155162        int option_index = 0;
     
    10681075#endif
    10691076    printf("              [-f fuzzing] [-D delay] [-F forks] [-C crashes] [-B bytes]\n");
     1077#if defined HAVE_SETRLIMIT
    10701078    printf("              [-T seconds] [-M bytes] [-b ranges] [-P protect] [-R refuse]\n");
     1079#else
     1080    printf("              [-T seconds] [-b ranges] [-P protect] [-R refuse]\n");
     1081#endif
    10711082#if defined HAVE_REGEX_H
    10721083    printf("              [-I include] [-E exclude] [PROGRAM [--] [ARGS]...]\n");
Note: See TracChangeset for help on using the changeset viewer.