diff options
author | gandalf <gandalf> | 2004-02-02 19:58:36 +0000 |
---|---|---|
committer | gandalf <gandalf> | 2004-02-02 19:58:36 +0000 |
commit | 108692b017a4c7d36abb31885dd534d05eacfc09 (patch) | |
tree | c1571f5b7a71e3d7e39efd2e7f8e981c54c9815b /ip6tables-restore.c | |
parent | f7a134c4d042f860ff2f2a286a50e7542b33877f (diff) |
Bloody copy-n-edit. Complain when COMMIT is missing...
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r-- | ip6tables-restore.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 287e864..0414a6e 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; } |