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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user