aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-06-01 21:41:11 +0200
committerUlrich Müller <ulm@gentoo.org>2016-06-01 21:41:11 +0200
commitda9a451824ccd5e4e2b9be405fecad82599ba702 (patch)
tree318f36823533032763bc95698133f394e9ff482a /libs
parentHappy new year 2016! (diff)
downloadeselect-da9a451824ccd5e4e2b9be405fecad82599ba702.tar.gz
eselect-da9a451824ccd5e4e2b9be405fecad82599ba702.tar.bz2
eselect-da9a451824ccd5e4e2b9be405fecad82599ba702.zip
Avoid absolute paths for programs.
* configure.ac: Where possible, use AC_CHECK_PROGS instead of AC_PATH_PROGS, in order to avoid absolute paths, bug 122260. * libs/core.bash.in (sed): * libs/package-manager.bash.in (portageq): Invoke commands with "command" so that they will work without a path.
Diffstat (limited to 'libs')
-rw-r--r--libs/core.bash.in4
-rw-r--r--libs/package-manager.bash.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/core.bash.in b/libs/core.bash.in
index 6b6f049..baddfde 100644
--- a/libs/core.bash.in
+++ b/libs/core.bash.in
@@ -119,7 +119,7 @@ inherit() {
done
}
-# GNU sed wrapper (real path to GNU sed determined by configure)
+# GNU sed wrapper (sed or gsed, as determined by configure)
sed() {
- @SED@ "$@"
+ command @SED@ "$@"
}
diff --git a/libs/package-manager.bash.in b/libs/package-manager.bash.in
index 691bd3c..b6d8218 100644
--- a/libs/package-manager.bash.in
+++ b/libs/package-manager.bash.in
@@ -28,9 +28,9 @@ package_manager() {
}
# portageq
-# Run portageq with safe filename as set by configure. Redirect stderr
+# Run portageq. Redirect stderr
portageq() {
- @PORTAGEQ@ "$@" 2>/dev/null
+ command portageq "$@" 2>/dev/null
}
# run_paludis PRIVATE