From e0dc5813667b87449ab4f2c1ffff5339f2927f1b Mon Sep 17 00:00:00 2001 From: Martin Josefsson Date: Mon, 2 Feb 2004 19:58:36 +0000 Subject: Bloody copy-n-edit. Complain when COMMIT is missing... --- ip6tables-restore.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ip6tables-restore.c') 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 * 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 @@ -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; } -- cgit v1.2.3