summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-06-27 16:04:08 +0000
committerrillig <rillig@pkgsrc.org>2005-06-27 16:04:08 +0000
commit63d76b7f930bf0e228fcad69011aea00be628764 (patch)
tree44075ba353808114d7c24797230aaf7ba08f1db4
parent2c727e22c881c40f7b48052f605ffc7d49e4c6cb (diff)
downloadpkgsrc-63d76b7f930bf0e228fcad69011aea00be628764.tar.gz
Fixed the quoting. The shell is hard-coded to /bin/sh instead of relying
on which(1). Correctly pass all arguments (even the first one) to the build script. This fixes PR 30362.
-rw-r--r--mk/bulk/do-sandbox-build9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/bulk/do-sandbox-build b/mk/bulk/do-sandbox-build
index 8d015d85e68..49f193777c4 100644
--- a/mk/bulk/do-sandbox-build
+++ b/mk/bulk/do-sandbox-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: do-sandbox-build,v 1.10 2005/05/07 22:16:38 wiz Exp $
+# $NetBSD: do-sandbox-build,v 1.11 2005/06/27 16:04:08 rillig Exp $
#
# Script to start a sandbox build
@@ -7,5 +7,8 @@
# See pkgsrc/doc/pkgsrc.txt for documentation!
#
-sh=`which sh`
-chroot /usr/sandbox $sh -c "cd /usr/pkgsrc && $sh mk/bulk/build $@"
+sh="/bin/sh"
+build="mk/bulk/build"
+
+chroot /usr/sandbox \
+ $sh -c "cd /usr/pkgsrc && exec $sh $build \"\$@\"" -- $build "$@"