summaryrefslogtreecommitdiffstats
path: root/ip6tables-restore.c
diff options
context:
space:
mode:
authorMartin Josefsson <gandalf@wlug.westbo.se>2004-02-02 19:58:36 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2004-02-02 19:58:36 +0000
commite0dc5813667b87449ab4f2c1ffff5339f2927f1b (patch)
treec1571f5b7a71e3d7e39efd2e7f8e981c54c9815b /ip6tables-restore.c
parentbb2f68ae205ad5fe0c76c85c11e6d0f5a09fb862 (diff)
Bloody copy-n-edit. Complain when COMMIT is missing...
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r--ip6tables-restore.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index 287e8640..0414a6e1 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -7,7 +7,7 @@
* Rusty Russell <rusty@linuxcare.com.au>
* This code is distributed under the terms of GNU GPL v2
*
- * $Id: ip6tables-restore.c,v 1.16 2004/01/31 19:33:47 gandalf Exp $
+ * $Id: ip6tables-restore.c,v 1.17 2004/01/31 19:41:49 gandalf Exp $
*/
#include <getopt.h>
@@ -389,6 +389,11 @@ int main(int argc, char *argv[])
exit(1);
}
}
+ if (in_table) {
+ fprintf(stderr, "%s: COMMIT expected at line %u\n",
+ program_name, line + 1);
+ exit(1);
+ }
return 0;
}