1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

When running as root, be sure to propagate

PATH through to the process we exec as non-root.
This commit is contained in:
Jim Meyering
2004-06-21 17:06:58 +00:00
parent 16e04fa77e
commit d55a463d8b

View File

@@ -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