diff options
author | rillig <rillig> | 2005-06-27 16:04:08 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-06-27 16:04:08 +0000 |
commit | 91ed2cfcb48e80002e021b3638788d1833cbe717 (patch) | |
tree | 44075ba353808114d7c24797230aaf7ba08f1db4 /mk/bulk/do-sandbox-build | |
parent | 9a5030140b0200cfe38da6add005a448771145d9 (diff) | |
download | pkgsrc-91ed2cfcb48e80002e021b3638788d1833cbe717.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.
Diffstat (limited to 'mk/bulk/do-sandbox-build')
-rw-r--r-- | mk/bulk/do-sandbox-build | 9 |
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 "$@" |