mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Fix a bug in how the LS_COLORS ln=target attribute is handled.
* src/ls.c (gobble_file): Use "stat" (not lstat) also when the ln=target attribute applies. Reported by Kirk Kelsey.
This commit is contained in:
1 parent
abdf924333
commit
d63623eb7c
2 files changed
+8
-1
No files matched your search
@@ -1,3 +1,9 @@
|
||||
2007-04-07 Eric Blake <ebb9@byu.net>
|
||||
|
||||
Fix a bug in how the LS_COLORS ln=target attribute is handled.
|
||||
* src/ls.c (gobble_file): Use "stat" (not lstat) also when the
|
||||
ln=target attribute applies. Reported by Kirk Kelsey.
|
||||
|
||||
2007-04-02 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* src/copy.c (copy_reg): Initialize local "con", before calling
|
||||
|
||||
@@ -2577,7 +2577,8 @@ gobble_file (char const *name, enum filetype type, ino_t inode,
|
||||
|| ((print_inode || format_needs_type)
|
||||
&& (type == symbolic_link || type == unknown)
|
||||
&& (dereference == DEREF_ALWAYS
|
||||
|| (command_line_arg && dereference != DEREF_NEVER)))
|
||||
|| (command_line_arg && dereference != DEREF_NEVER)
|
||||
|| color_symlink_as_referent))
|
||||
/* 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