Module Name: src Committed By: jmcneill Date: Thu Oct 21 01:02:35 UTC 2010
Modified Files: src/sys/dev: firmload.c Log Message: perform pathname lookup with NOCHROOT flag To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/firmload.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/firmload.c diff -u src/sys/dev/firmload.c:1.12 src/sys/dev/firmload.c:1.13 --- src/sys/dev/firmload.c:1.12 Thu Jun 24 13:03:08 2010 +++ src/sys/dev/firmload.c Thu Oct 21 01:02:34 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: firmload.c,v 1.12 2010/06/24 13:03:08 hannken Exp $ */ +/* $NetBSD: firmload.c,v 1.13 2010/10/21 01:02:34 jmcneill Exp $ */ /*- * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.12 2010/06/24 13:03:08 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.13 2010/10/21 01:02:34 jmcneill Exp $"); /* * The firmload API provides an interface for device drivers to access @@ -244,7 +244,7 @@ for (path = firmware_path_first(drvname, imgname, pnbuf, &prefix); path != NULL; path = firmware_path_next(drvname, imgname, pnbuf, &prefix)) { - NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, path); + NDINIT(&nd, LOOKUP, FOLLOW | NOCHROOT, UIO_SYSSPACE, path); error = vn_open(&nd, FREAD, 0); if (error == ENOENT) continue;