]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Bloody copy-n-edit. Complain when COMMIT is missing...
authorMartin Josefsson <gandalf@wlug.westbo.se>
Mon, 2 Feb 2004 19:58:36 +0000 (19:58 +0000)
committerMartin Josefsson <gandalf@wlug.westbo.se>
Mon, 2 Feb 2004 19:58:36 +0000 (19:58 +0000)
ip6tables-restore.c

index 287e86406e76c0facb9bcaa109f4c9d8b287d4e8..0414a6e14f6d91741fc3e3ec0b508bba39087659 100644 (file)
@@ -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;
 }