]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report line of previous acl definition.
authorMark Andrews <marka@isc.org>
Wed, 13 Feb 2002 03:43:09 +0000 (03:43 +0000)
committerMark Andrews <marka@isc.org>
Wed, 13 Feb 2002 03:43:09 +0000 (03:43 +0000)
lib/bind9/check.c

index 6265e442f298b947254b334b2b500628cfe78acc..1d514655e3c2ea831ebe9886b64801fd4264a8f1 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: check.c,v 1.21 2002/02/12 13:17:23 marka Exp $ */
+/* $Id: check.c,v 1.22 2002/02/13 03:43:09 marka Exp $ */
 
 #include <config.h>
 
@@ -630,11 +630,18 @@ bind9_check_namedconf(cfg_obj_t *config, isc_log_t *logctx, isc_mem_t *mctx) {
                                name = cfg_obj_asstring(cfg_tuple_get(acl2,
                                                                      "name"));
                                if (strcasecmp(aclname, name) == 0) {
+                                       const char *file = cfg_obj_file(acl);
+                                       unsigned int line = cfg_obj_line(acl);
+
+                                       if (file == NULL)
+                                               file = "<unknown file>";
+
                                        cfg_obj_log(acl2, logctx, ISC_LOG_ERROR,
                                                    "attempt to redefine "
-                                                   "acl '%s'", name);
+                                                   "acl '%s' previous "
+                                                   "definition: %s:%u",
+                                                    name, file, line);
                                        result = ISC_R_FAILURE;
-                                       break;
                                }
                        }
                }