From 50c8908d93a61b9ad07973402f9e662d2f1d51aa Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 23:37:00 +0000 Subject: Apply patch 0002-main-restore-debug.patch patch_name: 0002-main-restore-debug.patch present_in_specfile: true location_in_specfile: 2 --- diff --git a/src/main.c b/src/main.c index 74199f9..6ab1b89 100644 --- a/src/main.c +++ b/src/main.c @@ -46,7 +46,7 @@ enum opt_vals { OPT_TERSE = 't', OPT_INVALID = '?', }; -#define OPTSTRING "+hvcf:iI:jvnsNaeSupypTt" +#define OPTSTRING "+hvd:cf:iI:jvnsNaeSupypTt" static const struct option options[] = { { @@ -228,8 +228,10 @@ static bool nft_options_check(int argc, char * const argv[]) if (nonoption) { nft_options_error(argc, argv, pos); return false; - } else if (argv[i][1] == 'I' || + } else if (argv[i][1] == 'd' || + argv[i][1] == 'I' || argv[i][1] == 'f' || + !strcmp(argv[i], "--debug") || !strcmp(argv[i], "--includepath") || !strcmp(argv[i], "--file")) { skip = true;