Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ls: gnu test case capability compatibility #6540

Open
matrixhead opened this issue Jul 5, 2024 · 0 comments
Open

ls: gnu test case capability compatibility #6540

matrixhead opened this issue Jul 5, 2024 · 0 comments
Labels

Comments

@matrixhead
Copy link
Contributor

This issue is for the Gnu test case capability.sh for util. This test case is used to check whether ls correctly colors the files with the Linux capabilities with ca color indicator.

Example

touch file1 file2
sudo setcap 'cap_net_bind_service=ep' file1
LS_COLORS="ca=30;41" ls --color=always

should produce output like this

^[[0m^[[30;41mfile1^[[0m     <-------------- correctly colors file with the capabilities set
file2

but uu_ls produce output like this

file1     <-------------- no color for the same file
file2

This test also checks that, whether the ex indicator is given or not, the ca indicator should be used to color the file with the capabilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants