From d55a463d8b0316282a3e71af7f16ed6c8724a701 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 21 Jun 2004 17:06:58 +0000 Subject: When running as root, be sure to propagate PATH through to the process we exec as non-root. --- tests/priv-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/priv-check') diff --git a/tests/priv-check b/tests/priv-check index ba3f26c86..b96ae5eed 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 -- cgit v1.2.3-54-g00ecf