-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
os: don't resolve symlinks in find_abs_path_of_executable() #24761
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
Conversation
Connected to Huly®: V_0.6-23178 |
I will replace the uppercase letter in the commit (for consistency) when this is approved. |
do not bother with editing it, the title of the commit in master does not depend on it (it is the title of the PR by default, but can be edited, when the PR is squash merged into master). i.e. you can just push new commits to the same branch, no need to change the old for cosmetic stuff like typos/capitalization |
Alright, thank you. |
You are welcome, I am happy to help. |
bb75319
to
e92990c
Compare
Looks good so far, only a test for the issue, remains to be added. |
e92990c
to
db4aa8a
Compare
I believe the "Ensure code is well formatted" should be in a separate, dedicated workflow. That way it's clear right away what the problem is and only one test fails. |
db4aa8a
to
d576156
Compare
On macOS:
Definitely unexpected... |
It is deliberately put at the start of all time consuming jobs, to save CI time, for code that is not even formatted. Many people are sloppy, and having the CI run sanitized jobs that each take 2-3 hours, results in a very long CI queue, given that often there are 3-4 active PRs with new commits in them... |
Use |
On macos:
Imho use |
I'm going to wait for the checks to finish before finalizing the PR.
Makes sense, I didn't know the heavy jobs took so long.
Oh, cool! @Krzmbrzl @Hartmnt We could implement something similar in our project(s). |
This fixes aliases and wrappers being ignored. Resolving the symlinks can cause breakage, an example is coreutils: commands such as "echo" are just a symlink to a single binary. The name of the symlink tells the program which tool is requested. Or even worse, in the case of security helpers such as firejail: a symlink is created in one of the top priority folders in PATH, so that firejail steps in and knows what to run. Resolving the symlink would make the program run outside a jail!
Also, the code is refactored to use testsuite_begin() and testsuite_end().
fd13050
to
93d6a6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work.
Thank you for your review! |
This fixes aliases and wrappers being ignored.
Resolving the symlinks can cause breakage, an example is coreutils: commands such as
echo
are just a symlink to a single binary. The name of the symlink tells the program which tool is requested.Or even worse, in the case of security helpers such as firejail: a symlink is created in one of the top priority folders in
PATH
, so that firejail steps in and knows what to run.Resolving the symlink would make the program run outside a jail!
Fixes #24759.