From: Daniel Hokka Zakrisson Date: Tue, 19 Sep 2006 17:29:52 +0000 (+0000) Subject: Put /bin first in the searchpath when looking for env, so we work around the /usr... X-Git-Tag: release-0.30.211~31 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8591304a8b064ccedfeb2a44fcce93a336aa7a40;p=util-vserver.git Put /bin first in the searchpath when looking for env, so we work around the /usr/bin/env-is-a-symlink issue. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2324 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/m4/ensc_pathprog.m4 b/m4/ensc_pathprog.m4 index c285748..cd79aad 100644 --- a/m4/ensc_pathprog.m4 +++ b/m4/ensc_pathprog.m4 @@ -75,7 +75,10 @@ AC_DEFUN([ENSC_PATHPROG_STANDARD_TOOLS], ENSC_PATHPROG(CP, cp) ENSC_PATHPROG(DIRNAME, dirname) ENSC_PATHPROG(EGREP, egrep) + env_old_searchpath="${ensc_searchpath}" + ensc_searchpath="/bin:${ensc_searchpath:-$PATH}" ENSC_PATHPROG(ENV, env) + ensc_searchpath="${env_old_searchpath}" ENSC_PATHPROG(GREP, grep) ENSC_PATHPROG(LN, ln) ENSC_PATHPROG(MKDIR, mkdir)