summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-21 17:06:58 +0000
committerJim Meyering <jim@meyering.net>2004-06-21 17:06:58 +0000
commitd55a463d8b0316282a3e71af7f16ed6c8724a701 (patch)
tree05ef966e401167013b2b0dbf2e802ff27696e9b3
parent16e04fa77ead362cbd76183c932b593ba2cdd464 (diff)
downloadcoreutils-d55a463d8b0316282a3e71af7f16ed6c8724a701.tar.xz
When running as root, be sure to propagate
PATH through to the process we exec as non-root.
-rw-r--r--tests/priv-check2
1 files changed, 1 insertions, 1 deletions
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