You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Activate canonicalize mode. If any component of the file name except the last one is missing or unavailable, readlink produces no output and exits with a nonzero exit code. A trailing slash is ignored.
Aren't all the components of the file name /proc/1/exe except the last one present and available?
I think that GNU won't exit immediately when it encounter an error on processing the filename. Instead, it will try to process the next filename. Finally, GNU may exit with nonzero code if any of the previous processing is failed.
If you think my idea is correct, I think I can help you fix this issue.
Running as a non-root user that does not have permission to read /proc/1/exe (since the init process is started as root):
Expected:
Actual:
We do see the error raised correctly when Uutils doesn't canonicalize the path:
But it's returning early instead of processing the rest of the files:
GNU Coreutils
Running
The text was updated successfully, but these errors were encountered: