]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
When running as root, be sure to propagate
authorJim Meyering <jim@meyering.net>
Mon, 21 Jun 2004 17:06:58 +0000 (17:06 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 21 Jun 2004 17:06:58 +0000 (17:06 +0000)
PATH through to the process we exec as non-root.

tests/priv-check

index ba3f26c8608f8b0b0669efe84a661a4f016833e9..b96ae5eed45e78458d134a3730100609687429e8 100644 (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