From owner-freebsd-current Sun Apr 30 6:38:46 2000 Delivered-To: freebsd-current@freebsd.org Received: from peedub.muc.de (p3E9B8F59.dip.t-dialin.net [62.155.143.89]) by hub.freebsd.org (Postfix) with ESMTP id D5F0C37B816 for ; Sun, 30 Apr 2000 06:38:40 -0700 (PDT) (envelope-from garyj@peedub.muc.de) Received: from peedub.muc.de (localhost [127.0.0.1]) by peedub.muc.de (8.9.3/8.6.9) with ESMTP id PAA00747 for ; Sun, 30 Apr 2000 15:35:07 +0200 (CEST) Message-Id: <200004301335.PAA00747@peedub.muc.de> X-Mailer: exmh version 2.1.1 10/15/1999 To: freebsd-current@freebsd.org Subject: kernel breakage in ng_base.c From: Gary Jennejohn Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 30 Apr 2000 15:35:07 +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here's a simple patch which works for me. --- /sys/netgraph/ng_base.c Sun Apr 30 11:32:22 2000 +++ /sys/netgraph/ng_base.c_mod Sun Apr 30 11:40:24 2000 @@ -314,11 +314,16 @@ int error; /* Not found, try to load it as a loadable module */ +#if 0 snprintf(filename, sizeof(filename), "ng_%s.ko", typename); if ((path = linker_search_path(filename)) == NULL) return (ENXIO); error = linker_load_file(path, &lf); FREE(path, M_LINKER); +#else + snprintf(filename, sizeof(filename), "ng_%s", typename); + error = linker_load_file(filename, &lf); +#endif if (error != 0) return (error); lf->userrefs++; /* pretend loaded by the syscall */ -------- Gary Jennejohn / garyj@muc.de gj@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message