Skip to content

Conversation

@Agent-Hellboy
Copy link

@Agent-Hellboy Agent-Hellboy commented Oct 25, 2025

fixes #8934

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

config: &Config,
command_line: bool,
) -> Self {
Self::new_with_dereference_override(p_buf, dir_entry, file_name, config, command_line, None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the point of keeping this function ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it was from an earlier patchset.

if command_line {
if let Ok(md) = p_buf.metadata() {
md.is_dir()
let must_dereference =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe move this block into a new function to simplify the code

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 26, 2025

CodSpeed Performance Report

Merging #9006 will not alter performance

Comparing Agent-Hellboy:issue-8934 (b4b3c2b) with main (2d718f2)

Summary

✅ 127 untouched
⏩ 6 skipped1

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

Copy link
Contributor

@sylvestre sylvestre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the latency

target_symlink: Option<&PathData>,
wrap: bool,
) -> OsString {
color_name_with_dangling_hint(name, path, style_manager, target_symlink, false, wrap)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the latency but i am not sure to see the point of a function with only one line.
color_name_with_dangling_hint should be merged back here

@ChrisDryden
Copy link
Collaborator

I believe this one can be closed, there have been other PR's that have addressed the issue of symlink target coloring and when testing locally on dirs, files, executables and broken symlinks they all matched for me locally

@ChrisDryden
Copy link
Collaborator

ChrisDryden commented Jan 17, 2026

Sorry, I completely misunderstood the purpose of this PR. I see now that its specifically about the symlink chains, not just about symlinks. I did some testing locally to see if symlink coloring was implemented and assumed that it already was after testing.

I did some more research into this problem and I think the solution is much simpler: #10274 There was simply a fs::metadata call that should have been a canonicalize call to get the end target instead.

By taking the current approach its also missing:

  • Executable files (should be green)
  • Setuid/setgid files
  • Sockets, FIFOs, device files
  • Files with special extensions (.tar.gz, .jpg, etc.)

On an unrelated not it looks like the upstream is missing coloring for .tar and .jpg/.mp4 files compared to gnu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ls does not colorize symlink targets according to the target type

3 participants