summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-09-23 11:55:41 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-09-23 11:55:41 +0200
commit3bbc4cedd3d63e8dfb3f150b7c420a5d56254b33 (patch)
treef3e92b80af3266615724faf9824c661a0dea204d /helpers
parentf5c27ba934802732f4ace381f5c07221cd164ce4 (diff)
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: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'helpers')
-rw-r--r--helpers/bitmask-root2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/bitmask-root b/helpers/bitmask-root
index 706d6f5..929e0f9 100644
--- a/helpers/bitmask-root
+++ b/helpers/bitmask-root
@@ -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