Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/usr.sbin/npf/npfctl/npf_build.c,v rcsdiff: /ftp/cvs/cvsroot/src/usr.sbin/npf/npfctl/npf_build.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.38 retrieving revision 1.39 diff -u -p -r1.38 -r1.39 --- src/usr.sbin/npf/npfctl/npf_build.c 2014/05/31 22:41:37 1.38 +++ src/usr.sbin/npf/npfctl/npf_build.c 2015/03/21 00:49:07 1.39 @@ -1,4 +1,4 @@ -/* $NetBSD: npf_build.c,v 1.38 2014/05/31 22:41:37 rmind Exp $ */ +/* $NetBSD: npf_build.c,v 1.39 2015/03/21 00:49:07 rmind Exp $ */ /*- * Copyright (c) 2011-2014 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include -__RCSID("$NetBSD: npf_build.c,v 1.38 2014/05/31 22:41:37 rmind Exp $"); +__RCSID("$NetBSD: npf_build.c,v 1.39 2015/03/21 00:49:07 rmind Exp $"); #include #include @@ -91,6 +91,10 @@ npfctl_config_send(int fd, const char *o } npf_rule_insert(npf_conf, NULL, defgroup); error = npf_config_submit(npf_conf, fd); + if (error == EEXIST) { /* XXX */ + errx(EXIT_FAILURE, "(re)load failed: " + "some table has a duplicate entry?"); + } if (error) { nl_error_t ne; _npf_config_error(npf_conf, &ne);