From ac42c83d7779ead2ac11ee075d078881095b3d32 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 12 May 2013 12:47:46 -0700 Subject: [PATCH] ebuild.sh: use PORTAGE_PYM_PATH as default cwd --- bin/ebuild.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 2293938bc..cb5fca733 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -145,11 +145,9 @@ export SANDBOX_ON=0 # Ensure that $PWD is sane whenever possible, to protect against # exploitation of insecure search path for python -c in ebuilds. -# See bug #239560. -if ! has "$EBUILD_PHASE" clean cleanrm depend help ; then - cd "$PORTAGE_BUILDDIR" || \ - die "PORTAGE_BUILDDIR does not exist: '$PORTAGE_BUILDDIR'" -fi +# See bug #239560 and bug #469338. +cd "${PORTAGE_PYM_PATH}" || \ + die "PORTAGE_PYM_PATH does not exist: '${PORTAGE_PYM_PATH}'" #if no perms are specified, dirs/files will have decent defaults #(not secretive, but not stupid) -- 2.26.2