diff options
author | Simon Lodal <simonl@parknet.dk> | 2004-09-22 01:57:41 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2004-09-22 01:57:41 +0000 |
commit | 4066ee9e891e1d482cb90fb7c47213bfa6f3fb5b (patch) | |
tree | e546820f79a6176205ddeda4d330a04a7fe32ebf /extensions/libipt_realm.c | |
parent | 57ff0b441bab760d0b78d762b6367af1b1a67a1f (diff) |
realm: fix inversion (Simon Lodal)
Diffstat (limited to 'extensions/libipt_realm.c')
-rw-r--r-- | extensions/libipt_realm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c index 60a38972..13bc17ca 100644 --- a/extensions/libipt_realm.c +++ b/extensions/libipt_realm.c @@ -49,7 +49,8 @@ parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { char *end; case '1': - check_inverse(optarg, &invert, &optind, 0); + check_inverse(argv[optind], &invert, &optind, 0); + optarg = argv[optind-1]; realminfo->id = strtoul(optarg, &end, 0); if (*end == '/') { realminfo->mask = strtoul(end+1, &end, 0); @@ -72,7 +73,7 @@ static void print_realm(unsigned long id, unsigned long mask, int invert, int numeric) { if (invert) - fputc('!', stdout); + printf("! "); if(mask != 0xffffffff) printf("0x%lx/0x%lx ", id, mask); |