With using --color and with LS_COLORS saying not to color
commitd6fed8d35eb4a5d55c79dbe8539a2d123b8b8d62
authorJim Meyering <jim@meyering.net>
Thu, 2 Dec 2004 07:47:14 +0000 (2 07:47 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 2 Dec 2004 07:47:14 +0000 (2 07:47 +0000)
tree33bba4d1b7570d1915c0813c18690cce50d7e172
parenta7c9d8dae80b5801f3553a89e16ad53a924cc5a1
With using --color and with LS_COLORS saying not to color
executables, don't stat every file.

(is_colored): New function.
(gobble_file): Use it.
(main): Use it here, in place of too-strict tests against NULL:
if either ORPHAN or MISSING was set to 0 from LS_COLORS, the
old test would fail.
src/ls.c