From 43b6361c5a81fcb0d1c1bb95cb75643684aad5ab Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 23 Sep 2013 13:15:34 -0400 Subject: env sanitization --- standalone/android/buildchroot | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/standalone/android/buildchroot b/standalone/android/buildchroot index 3f4c8eaa9..b759ae6ce 100755 --- a/standalone/android/buildchroot +++ b/standalone/android/buildchroot @@ -8,6 +8,13 @@ fi debootstrap --arch=i386 stable debian-stable-android cp $0-inchroot debian-stable-android/tmp cp $0-inchroot-asuser debian-stable-android/tmp + +# Don't use these vars in the chroot. +unset TMP +unset TEMP +unset TMPDIR +unset TEMPDIR + chroot debian-stable-android "tmp/$(basename $0)-inchroot" echo -- cgit v1.2.3