From b7a2eb795c6cf75a436e4880ccbc04c1766f5615 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Mon, 22 Oct 2007 21:49:39 +0000 Subject: [PATCH] Add a BUGS section to note that mount/chroot changes since a module was loaded might make the pathname inaccurate. I wonder if an inode reference should be stored with the pathname to allow a validity check? Suggested by: rwatson@ --- lib/libc/sys/kldstat.2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/sys/kldstat.2 b/lib/libc/sys/kldstat.2 index f2ca2a65b12..eb09a23dd7d 100644 --- a/lib/libc/sys/kldstat.2 +++ b/lib/libc/sys/kldstat.2 @@ -128,3 +128,7 @@ The .Nm kld interface first appeared in .Fx 3.0 . +.Sh BUGS +The pathname many not be accurate if the file system mounts have +changed since the module was loaded, or if this function is called +within a chrooted environment.