kldxref: Clarify ambiguous comment

This previously read, to me at least, as if the not only applied to
ending with ".ko", not to the entire rest of the sentence, and thus the
implementation looked wrong. The history of D43507 however shows that
the behaviour is as intended.
This commit is contained in:
Jessica Clarke 2024-08-12 22:53:13 +01:00
parent b70247df0b
commit 97c31cc800

View File

@ -839,8 +839,8 @@ main(int argc, char *argv[])
continue;
/*
* Skip files that generate errors like .debug, .symbol and .pkgsave
* by generally skipping all files not ending with ".ko" or that have
* no dots in the name (like kernel).
* by generally skipping all files which neither end with ".ko"
* nor have no dots in the name (like kernel).
*/
dot = strrchr(p->fts_name, '.');
if (dot != NULL && strcmp(dot, ".ko") != 0)