summaryrefslogtreecommitdiffstats
path: root/iptables-standalone.c
diff options
context:
space:
mode:
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);
}