diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-03-24 13:08:24 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-03-24 13:08:24 +0100 |
commit | 6e70f46f2a146bb7c657f71724c999147a5925dc (patch) | |
tree | db9bc0bd0b86d9954ed1000b4545013af02df853 /iptables-standalone.c | |
parent | ca6ccdb172b1846152dea421c215122759b84d29 (diff) |
iptables: refer to dmesg if we hit EINVALv1.4.3.1
With this patch, iptables refers to dmesg for further
troubleshooting if we hit EINVAL.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables-standalone.c')
-rw-r--r-- | iptables-standalone.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/iptables-standalone.c b/iptables-standalone.c index 208f71d7..91853884 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c @@ -69,9 +69,14 @@ main(int argc, char *argv[]) } if (!ret) { - fprintf(stderr, "iptables: %s. " - "Run `dmesg' for more information.\n", - iptc_strerror(errno)); + if (errno == EINVAL) { + fprintf(stderr, "iptables: %s. " + "Run `dmesg' for more information.\n", + iptc_strerror(errno)); + } else { + fprintf(stderr, "iptables: %s.\n", + iptc_strerror(errno)); + } if (errno == EAGAIN) { exit(RESOURCE_PROBLEM); } |