From: Jim Meyering Date: Mon, 21 Jun 2004 17:06:58 +0000 (+0000) Subject: When running as root, be sure to propagate X-Git-Tag: v5.3.0~1280 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d55a463d8b0316282a3e71af7f16ed6c8724a701;p=thirdparty%2Fcoreutils.git When running as root, be sure to propagate PATH through to the process we exec as non-root. --- diff --git a/tests/priv-check b/tests/priv-check index ba3f26c860..b96ae5eed4 100644 --- a/tests/priv-check +++ b/tests/priv-check @@ -60,7 +60,7 @@ case $PRIV_CHECK_ARG:$my_uid in echo "$0: skipping this test" 1>&2 (exit 77); exit } - exec setuidgid $NON_ROOT_USERNAME $0 + exec setuidgid $NON_ROOT_USERNAME env PATH=$PATH $0 ;; require-non-root:*) ;; esac