]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kldxref: Do not depend on the directory order.
authorjilles <jilles@FreeBSD.org>
Fri, 4 Oct 2013 21:25:55 +0000 (21:25 +0000)
committerjilles <jilles@FreeBSD.org>
Fri, 4 Oct 2013 21:25:55 +0000 (21:25 +0000)
commit64b622034f8aa86dc97f56d045d65e54cdd1f951
treebccb7f641d67b3773c014c01fcbf9fe8df730659
parentcf59042d5a28df352e229b74095717665e24e29c
kldxref: Do not depend on the directory order.

Sort the filenames to get a consistent result between machines of the same
architecture.

Also, sort FTS_D entries after other entries so kldxref -R works properly in
the uncommon case that a directory contains both subdirectories and modules.
Previously, this may have happened to work, depending on the order of files
in the directory.

PR: bin/182098
Submitted by: Derek Schrock (original version)
Tested by: Derek Schrock
Approved by: re (delphij)
MFC after: 1 week
usr.sbin/kldxref/kldxref.c