sh: Use dirent.d_type in pathname generation.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 5 Feb 2012 19:20:09 +0000 (11:20 -0800)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 5 Feb 2012 19:20:09 +0000 (11:20 -0800)
commitc601174268e0ea6cad93a733cecb3a07b2c503a6
treee039c6a9bcdb917f31fc3643b38b3d59de0afd37
parent867f2c406941a0de5691b6e550dbaea0262a3429
sh: Use dirent.d_type in pathname generation.

This improves performance for globs where a slash or another component
follows a component with metacharacters by eliminating unnecessary
attempts to open directories that are not.

Obtained-from:  FreeBSD 228942
bin/sh/expand.c