diff options
author | Eric Blake <ebb9@byu.net> | 2007-04-24 09:18:56 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-04-24 09:18:56 +0200 |
commit | 1d85945321f9118010740785f433d0be18bcbf1a (patch) | |
tree | 858ef99956fa128d64aefe9796ec3c3051f5bc73 /src/ls.c | |
parent | 25b8a7a987bcf7bc834fce2f5de2697bde5d156b (diff) | |
download | coreutils-1d85945321f9118010740785f433d0be18bcbf1a.tar.xz |
ls --color once again colors dangling symlinks correctly
* src/ls.c (gobble_file): Much like the 2007-04-07 fix,
add a term to the expression that decides whether we need
stat and/or lstat calls. Reported by Andreas Frische.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2578,7 +2578,7 @@ gobble_file (char const *name, enum filetype type, ino_t inode, && (type == symbolic_link || type == unknown) && (dereference == DEREF_ALWAYS || (command_line_arg && dereference != DEREF_NEVER) - || color_symlink_as_referent)) + || color_symlink_as_referent || check_symlink_color)) /* Command line dereferences are already taken care of by the above assertion that the inode number is not yet known. */ || (print_inode && inode == NOT_AN_INODE_NUMBER) |