Page MenuHomeFreeBSD

D27959.id82737.diff
No OneTemporary

D27959.id82737.diff

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
@@ -685,6 +685,7 @@
{
FTS *ftsp;
FTSENT *p;
+ char *dot = NULL;
int opt, fts_options, ival;
struct stat sb;
@@ -752,14 +753,13 @@
fwrite(&ival, sizeof(ival), 1, fxref);
reccnt = 0;
}
- /* skip non-files and separate debug files */
+ /* skip non-files.. */
if (p->fts_info != FTS_F)
continue;
- if (p->fts_namelen >= 6 &&
- strcmp(p->fts_name + p->fts_namelen - 6, ".debug") == 0)
- continue;
- if (p->fts_namelen >= 8 &&
- strcmp(p->fts_name + p->fts_namelen - 8, ".symbols") == 0)
+ /* and separate .debug, and .pkgsave files */
+ /* by skipping all files with 2 dots */
+ dot = strchr(p->fts_name, '.');
+ if (dot && strchr(dot + 1, '.') != NULL)
continue;
read_kld(p->fts_path, p->fts_name);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 14, 12:03 PM (3 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29668676
Default Alt Text
D27959.id82737.diff (891 B)

Event Timeline