diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-03-21 01:28:35 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-03-21 01:28:35 -0400 |
commit | 214d027f0d92d1d042451765e875f0a84c3fa37d (patch) | |
tree | de0b57ddca10e6d8f78a400962ef3604f6855e4b /Makefile.am | |
parent | qpkg: document the chdir() usage (diff) | |
download | portage-utils-214d027f0d92d1d042451765e875f0a84c3fa37d.tar.gz portage-utils-214d027f0d92d1d042451765e875f0a84c3fa37d.tar.bz2 portage-utils-214d027f0d92d1d042451765e875f0a84c3fa37d.zip |
which: punt!
This code is only used by --install, and only when /proc/self/exe does
not work. We rarely utilize --install, and it's rare for /proc to be
broken in a way we can't rely on. So having this func just for that
does not make much sense.
Even then, the code was not correct. It walked $PATH in reverse order
(when it should have been forward order), and it would abort scanning
beofre it checked the first element. It also doesn't support empty
path elements (which is supposed to be $PWD).
If we want a which() in the future, we can grab the updated version
from Gentoo's pax-utils project.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index ed5c184c..14bc6491 100644 --- a/Makefile.am +++ b/Makefile.am @@ -112,7 +112,6 @@ EXTRA_DIST += \ libq/vdb.c \ libq/vdb_get_next_dir.c \ libq/virtuals.c \ - libq/which.c \ libq/xarray.c \ libq/xasprintf.c \ libq/xchdir.c \ |