Skip .symbols files.

This commit is contained in:
ru 2005-11-11 08:13:18 +00:00
parent f7bdaa902f
commit c5eba8bfee

View File

@ -187,7 +187,7 @@ parse_entry(struct mod_metadata *md, const char *cval,
printf(" module %s\n", cval);
break;
default:
warnx("unknown metdata record %d in file %s", md->md_type, kldname);
warnx("unknown metadata record %d in file %s", md->md_type, kldname);
}
if (!error)
record_end();
@ -344,6 +344,9 @@ main(int argc, char *argv[])
}
if (p->fts_info != FTS_F)
continue;
if (p->fts_namelen >= 8 &&
strcmp(p->fts_name + p->fts_namelen - 8, ".symbols") == 0)
continue;
read_kld(p->fts_path, p->fts_name);
}
fts_close(ftsp);