summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Aarnio <Lauri.Aarnio@iki.fi>2009-01-29 22:19:15 +0200
committerLauri Leukkunen <lle@rahina.org>2009-02-10 08:38:10 +0200
commitbd94fb79e83bfa045e56c32aaa0375fc9f1f5dd2 (patch)
treeed84ad3cee5a37ca471e51050e067452cdef7843
parentdb29687fcab466521fb087b1006d2426a15246d8 (diff)
Bugfix: fixed a bug introduced by the Argv&envp mangling rules generator patch
-rwxr-xr-xutils/sb212
1 files changed, 7 insertions, 5 deletions
diff --git a/utils/sb2 b/utils/sb2
index 4b3e5fc..1cbff9a 100755
--- a/utils/sb2
+++ b/utils/sb2
@@ -1160,11 +1160,6 @@ export LD_LIBRARY_PATH
# ------------
# Now everything is ready, programs can be executed in SB2'ed environment.
# Make automatically generated rules, if needed:
-if [ -n "CREATE_ARGVMODS_USR_BIN_RULES" ]
-then
- create_argvmods_usr_bin_rules "$CREATE_ARGVMODS_USR_BIN_RULES"
-fi
-
if [ -z "$SBOX_JOIN_SESSION_FILE" ]; then
#
# Only generate argvmods rules when we are not joining
@@ -1172,6 +1167,13 @@ if [ -z "$SBOX_JOIN_SESSION_FILE" ]; then
#
create_argvmods_rules
+ # if needed, create path mapping rules for toolchain components.
+ # this can only be done after "create_argvmods_rules" has been executed.
+ if [ -n "CREATE_ARGVMODS_USR_BIN_RULES" ]
+ then
+ create_argvmods_usr_bin_rules "$CREATE_ARGVMODS_USR_BIN_RULES"
+ fi
+
#
# Create reverse mapping rules before starting the
# actual command (or shell).