-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: -L
on broken links should return 1
#2928
Comments
The call that should return 1, according to the GNU test, is specifically:
We already return 1 with:
Or any other case where we try to deference the a broken symlink. I believe (but am not sure) that the issue is that because the security context is not supported in the first place, we never get the metadata, so we don't show the error. |
|
sure, please open as many issues as you need :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still an issue.
I'm still seeing ret code 0 with just |
I've looked into it and think I've solved the Though with GNU coreutils 9.1, I see |
uutils |
|
Ah sorry, I misread your comment. I think you're right! |
Fixed in #4960 |
ls
is supposed to have an exit status of 1 for "minor problems". This includes trying to dereference symbolic links (via-L
) when they don't link anywhere. The lack of return code is causing the latesttests/ls/selinux-segfault
GNU test to fail.The text was updated successfully, but these errors were encountered: