Skip to content
Snippets Groups Projects
Unverified Commit 3bbc4ced authored by Nowa Ammerlaan's avatar Nowa Ammerlaan
Browse files

helpers/bitmask-root: the ip command is sometimes in /bin/


Upstreamed patch from Gentoo Linux

We put bin before sbin because we want sbin to have the
higher priority

Signed-off-by: default avatarAndrew Ammerlaan <andrewammerlaan@gentoo.org>
parent f5c27ba9
No related branches found
No related tags found
1 merge request!145gui/build.sh: properly respect user variables and also upstream some other Gentoo patches
......@@ -106,7 +106,7 @@ def swhich(binary):
:rtype: str
"""
for folder in ["/sbin", "/usr/sbin", "/usr/local/sbin"]:
for folder in ["/bin", "/sbin", "/usr/bin", "/usr/sbin", "/usr/local/sbin"]:
path = os.path.join(folder, binary)
if os.path.isfile(path):
return path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment