Skip to content

ls: check ACL using full path, not bare filename#11812

Draft
sylvestre wants to merge 2 commits intouutils:mainfrom
sylvestre:issue-11789
Draft

ls: check ACL using full path, not bare filename#11812
sylvestre wants to merge 2 commits intouutils:mainfrom
sylvestre:issue-11789

Conversation

@sylvestre
Copy link
Copy Markdown
Contributor

Closes: #11789

)

When listing a directory containing ACL files from a different cwd,
ls fails to detect ACLs during the width-measuring pass and emits
output with no separator between the `+` marker and the link count
(e.g. `-rw-r--r--+1` instead of `-rw-r--r--+ 1`).
When measuring column widths for the long listing, `has_acl` was
called with `item.display_name()` (the bare filename) instead of
`item.path()`. Listing a directory from a different cwd meant the
ACL lookups ran against the wrong directory, failed, and the `+`
marker column was never reserved — producing output like
`-rw-r--r--+1` with no separator before the link count.
@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/tail/retry is no longer failing!
Note: The gnu test tests/dd/no-allocate is now being skipped but was previously passing.
Congrats! The gnu test tests/cut/cut-huge-range is now passing!

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: no separator between permissions and link count

1 participant