pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk Fixed the quoting. The shell is hard-coded to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a70bc355f40
branches:  trunk
changeset: 496391:2a70bc355f40
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Jun 27 16:04:08 2005 +0000

description:
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:

 mk/bulk/do-sandbox-build |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 2ac7f2184ab8 -r 2a70bc355f40 mk/bulk/do-sandbox-build
--- a/mk/bulk/do-sandbox-build  Mon Jun 27 15:58:33 2005 +0000
+++ b/mk/bulk/do-sandbox-build  Mon Jun 27 16:04:08 2005 +0000
@@ -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 "$@"



Home | Main Index | Thread Index | Old Index