Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108613369
D43507.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43507.diff
View Options
diff --git a/usr.sbin/kldxref/kldxref.8 b/usr.sbin/kldxref/kldxref.8
--- a/usr.sbin/kldxref/kldxref.8
+++ b/usr.sbin/kldxref/kldxref.8
@@ -50,14 +50,12 @@
that directory) is removed.
.Pp
.Nm
-ignores files with at least two "."s in the filename, such as
-.Pa foo.ko.debug
-or
-.Pa bar.ko.pkgsave .
-Note that this means that modules cannot have names such as
-.Pa foo.bar.ko .
-This limitation however, has been lived practice since the beginning of
-FreeBSD's kernel modules.
+only processes files that either have no dots in their name like
+.Pa kernel
+or that end in
+.Dq .ko
+like
+.Pa foo.ko .
.Pp
The following options are available:
.Bl -tag -width indent
diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c
--- a/usr.sbin/kldxref/kldxref.c
+++ b/usr.sbin/kldxref/kldxref.c
@@ -842,10 +842,11 @@
continue;
/*
* Skip files that generate errors like .debug, .symbol and .pkgsave
- * by generally skipping all files with 2 dots.
+ * by generally skipping all files not ending with ".ko" or that have
+ * no dots in the name (like kernel).
*/
- dot = strchr(p->fts_name, '.');
- if (dot && strchr(dot + 1, '.') != NULL)
+ dot = strrchr(p->fts_name, '.');
+ if (dot != NULL && strcmp(dot, ".ko") != 0)
continue;
read_kld(p->fts_path, p->fts_name);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 9:39 PM (8 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16214029
Default Alt Text
D43507.diff (1 KB)
Attached To
Mode
D43507: kldxref: Be more conservative about what we reject.
Attached
Detach File
Event Timeline
Log In to Comment