diff options
author | rillig <rillig> | 2005-06-27 18:37:22 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-06-27 18:37:22 +0000 |
commit | 09d82d8de0bdd39d7c99e7e0b39245be5c660443 (patch) | |
tree | 4587b507b6744a2aadde44430d625ff0d695cc75 /mk/bulk/do-sandbox-upload | |
parent | 30486fb434b64f14568c4e38403bb2de9f0a0966 (diff) | |
download | pkgsrc-09d82d8de0bdd39d7c99e7e0b39245be5c660443.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. See PR 30362 for details.
Diffstat (limited to 'mk/bulk/do-sandbox-upload')
-rw-r--r-- | mk/bulk/do-sandbox-upload | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/bulk/do-sandbox-upload b/mk/bulk/do-sandbox-upload index 9197dae48df..819549a374a 100644 --- a/mk/bulk/do-sandbox-upload +++ b/mk/bulk/do-sandbox-upload @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: do-sandbox-upload,v 1.3 2005/05/07 22:16:38 wiz Exp $ +# $NetBSD: do-sandbox-upload,v 1.4 2005/06/27 18:37:22 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/upload $@" +sh="/bin/sh" +upload="mk/bulk/upload" + +chroot /usr/sandbox \ + $sh -c "cd /usr/pkgsrc && exec $sh $upload \"\$@\"" -- $upload "$@" |