diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-04-04 14:10:49 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-04-04 14:10:51 +0200 |
commit | ea6f406fa77aa7b4fc52ccc9b572ae96196e570d (patch) | |
tree | 4b02cb692a025cb189e101b13e468fc209d56b0c /ip6tables-standalone.c | |
parent | 517de3d32e3eb261cfa7fce33751f9e37bae7112 (diff) | |
parent | b1d968c30dde563c2738fdacb723c18232fb5ccb (diff) |
Merge branch 'plus'
Diffstat (limited to 'ip6tables-standalone.c')
-rw-r--r-- | ip6tables-standalone.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ip6tables-standalone.c b/ip6tables-standalone.c index c0ca6459..649ac3d8 100644 --- a/ip6tables-standalone.c +++ b/ip6tables-standalone.c @@ -68,10 +68,16 @@ main(int argc, char *argv[]) ip6tc_free(handle); } - if (!ret) - fprintf(stderr, "ip6tables: %s. " - "Run `dmesg' for more information.\n", - ip6tc_strerror(errno)); + if (!ret) { + if (errno == EINVAL) { + fprintf(stderr, "ip6tables: %s. " + "Run `dmesg' for more information.\n", + ip6tc_strerror(errno)); + } else { + fprintf(stderr, "ip6tables: %s.\n", + ip6tc_strerror(errno)); + } + } exit(!ret); } |