summaryrefslogtreecommitdiffstats
path: root/iptables-standalone.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-04-04 14:10:49 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-04-04 14:10:51 +0200
commitea6f406fa77aa7b4fc52ccc9b572ae96196e570d (patch)
tree4b02cb692a025cb189e101b13e468fc209d56b0c /iptables-standalone.c
parent517de3d32e3eb261cfa7fce33751f9e37bae7112 (diff)
parentb1d968c30dde563c2738fdacb723c18232fb5ccb (diff)
Merge branch 'plus'
Diffstat (limited to 'iptables-standalone.c')
-rw-r--r--iptables-standalone.c11
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);
}