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

chmod: Extra verbosity for symlink creation is wrong #4381

Closed
dmatos2012 opened this issue Feb 16, 2023 · 0 comments · Fixed by #4402
Closed

chmod: Extra verbosity for symlink creation is wrong #4381

dmatos2012 opened this issue Feb 16, 2023 · 0 comments · Fixed by #4402

Comments

@dmatos2012
Copy link
Contributor

MRE

>touch a
>ln -s a b
rm a

Produces different output

uu_chmod u+x b
failed to change mode of 'b' from 0000 (---------) to 0000 (---------)
./target/debug/chmod: cannot operate on dangling symlink 'b'

GNU

chmod u+x b
chmod: cannot operate on dangling symlink 'b'

However, if the --verbose flag is used, then the messages match , but still the uu_chmod is wrong, as :

uu_chmod u+x --verbose b
failed to change mode of 'b' from 0000 (---------) to 0000 (---------)
./target/debug/chmod: cannot operate on dangling symlink 'b'

GNU

chmod u+x --verbose b
chmod: cannot operate on dangling symlink 'b'
failed to change mode of 'b' from 0000 (---------) to 1500 (r-x-----T)

Notice the r-x-----T and the 1500, whereas uu_chmod has a hardcoded failure message(for mode)
Introduced in #1967

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

Successfully merging a pull request may close this issue.

2 participants