strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
381f6d9
)
testing: Override user environment PATH in chroot
author
Robin McCorkell
<robin@mccorkell.me.uk>
Mon, 27 Nov 2017 16:46:22 +0000
(16:46 +0000)
committer
Tobias Brunner
<tobias@strongswan.org>
Fri, 22 Dec 2017 09:22:47 +0000
(10:22 +0100)
chroot will capture the user environment's PATH variable, which may be
wrong (e.g. not include /bin:/sbin, as it is on Arch). We should set a
known-working PATH variable in the chroot.
testing/scripts/function.sh
patch
|
blob
|
history
diff --git
a/testing/scripts/function.sh
b/testing/scripts/function.sh
index
9a32c44
..
c512b8a
100755
(executable)
--- a/
testing/scripts/function.sh
+++ b/
testing/scripts/function.sh
@@
-50,7
+50,7
@@
execute()
# $1 - command to execute
execute_chroot()
{
- execute "chroot $LOOPDIR $@"
+ execute "chroot $LOOPDIR
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$@"
}
# write green status message to console