Skip to content

ls: Proper alignment for capabilities and ACLs notifications#8793

Merged
Ecordonnier merged 8 commits intouutils:mainfrom
kimono-koans:proper_alignment
Jan 14, 2026
Merged

ls: Proper alignment for capabilities and ACLs notifications#8793
Ecordonnier merged 8 commits intouutils:mainfrom
kimono-koans:proper_alignment

Conversation

@kimono-koans
Copy link
Contributor

Fixes: #8792

@github-actions
Copy link

github-actions bot commented Oct 2, 2025

GNU testsuite comparison:

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

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 2, 2025

CodSpeed Performance Report

Merging #8793 will not alter performance

Comparing kimono-koans:proper_alignment (5208045) 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.

@sylvestre
Copy link
Contributor

Could you please add a test to make sure we don't regress? Thanks

@github-actions
Copy link

github-actions bot commented Oct 5, 2025

GNU testsuite comparison:

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

@github-actions
Copy link

github-actions bot commented Oct 5, 2025

GNU testsuite comparison:

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

1 similar comment
@github-actions
Copy link

github-actions bot commented Oct 5, 2025

GNU testsuite comparison:

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

@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)
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@Ecordonnier
Copy link
Collaborator

This seems to work correctly:

with this PR:

ecordonnier@lj8k2dq3:~/dev/coreutils$ ./test_acl.sh 
+ rm -rf test_acl
+ mkdir test_acl
+ cd test_acl
+ touch file_no_acl
+ touch file_with_acl
+ setfacl -m u:nobody:r file_with_acl
+ ls -l
total 0
-rw-rw-r--  1 ecordonnier ecordonnier 0 Jan 14 11:54 file_no_acl
-rw-rw-r--+ 1 ecordonnier ecordonnier 0 Jan 14 11:54 file_with_acl
+ ../target/debug/ls -l
total 0
-rw-rw-r--  1 ecordonnier ecordonnier 0 Jan 14 11:54 file_no_acl
-rw-rw-r--+ 1 ecordonnier ecordonnier 0 Jan 14 11:54 file_with_acl

with main 22069bb (without this PR merged):

ecordonnier@lj8k2dq3:~/dev/coreutils$ ./test_acl.sh 
+ rm -rf test_acl
+ mkdir test_acl
+ cd test_acl
+ touch file_no_acl
+ touch file_with_acl
+ setfacl -m u:nobody:r file_with_acl
+ ls -l
total 0
-rw-rw-r--  1 ecordonnier ecordonnier 0 Jan 14 11:56 file_no_acl
-rw-rw-r--+ 1 ecordonnier ecordonnier 0 Jan 14 11:56 file_with_acl
+ ../target/debug/ls -l
total 0
-rw-rw-r-- 1 ecordonnier ecordonnier 0 Jan 14 11:56 file_no_acl
-rw-rw-r--+ 1 ecordonnier ecordonnier 0 Jan 14 11:56 file_with_acl

@Ecordonnier Ecordonnier merged commit fd9157a into uutils:main Jan 14, 2026
128 checks passed
mattsu2020 pushed a commit to mattsu2020/coreutils that referenced this pull request Jan 23, 2026
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: When one file has selinux context (or ACL) and another does not, the column alignment in ls -l is off.

3 participants