Unify the value of PATH
Commit 9eb9351dd3e18ead47c1efdf94d53e477828d7d5 made the PATH hardcoded,
fixing the bug #1304. The further suggestion in that bug is to unify the
value of PATH accross the source code. So let's use ENV_PATH from types.h
everythere.
The rationale of chossing value of PATH is:
- put /usr/local/{sbin,bin} first so a sysadmin can redefine
a system command; it should not slow down the lookup a lot since
usually these direcories are empty or almost empty;
- put /usr/{sbin,bin} second since they could contain more feature-rich
version of a command than the one from /sbin, /bin
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
4 files changed