mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
25b8a7a987
commit
1d85945321
2 files changed
+8
-1
No files matched your search
@@ -1,3 +1,10 @@
|
||||
2007-04-24 Eric Blake <ebb9@byu.net>
|
||||
|
||||
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.
|
||||
|
||||
2007-04-16 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* src/cut.c (usage): Adjust synopsis to show that an OPTION is required.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user