*
* This code is distributed under the terms of GNU GPL v2
*
- * $Id: iptables-restore.c,v 1.34 2004/05/26 16:04:48 gandalf Exp $
+ * $Id: iptables-restore.c,v 1.35 2004/06/25 11:18:57 kadlec Exp $
*/
#include <getopt.h>
exit(1);
}
- if (!iptc_builtin(chain, handle)) {
+ if (iptc_builtin(chain, handle) <= 0) {
DEBUGP("Creating new chain '%s'\n", chain);
if (!iptc_create_chain(chain, &handle))
exit_error(PARAMETER_PROBLEM,
for (i = 0; i < chaincount; i++) {
if (!builtinstoo
&& iptc_builtin(chains + i*sizeof(ipt_chainlabel),
- *handle))
+ *handle) == 1)
continue;
ret &= fn(chains + i*sizeof(ipt_chainlabel), verbose, handle);
}