summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorLauri Aarnio <Lauri.Aarnio@iki.fi>2008-10-29 10:19:37 +0200
committerLauri Leukkunen <lle@rahina.org>2008-11-02 18:59:55 +0200
commit19e79af87933b3e92e9f09185d47808a9ac90630 (patch)
tree0a06adb383877178f2df4cd516a9918ce6aec754 /wrappers
parent3a51c776ff15fcc89be17f51f9109862ed4ea09f (diff)
Yet another fix to gcc tools exec preprocesing - something was still missing from my previous patch: - prefix "/sb2/" was not included in the list of allowed paths for gcc tools, and this caused host-* tools to fail with the worst possible way: No messages & OK exit status (since the files were just symlinks to /bin/true). Fixed that, and introduced a simple wrapper for host-* tools, which at least prints a short explanation (although exit status is still "OK" for compatibility)
Diffstat (limited to 'wrappers')
-rwxr-xr-xwrappers/host-gcc-tools-wrapper22
1 files changed, 22 insertions, 0 deletions
diff --git a/wrappers/host-gcc-tools-wrapper b/wrappers/host-gcc-tools-wrapper
new file mode 100755
index 0000000..2d3817c
--- /dev/null
+++ b/wrappers/host-gcc-tools-wrapper
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# Wrapper for host-* tools. This is not used, if use of the host-*
+# tools are allowed! in that case the preload library will modify
+# exec so that the real tool is executed, and not this one.
+#
+# Copyright (c) 2008 Nokia Corporation.
+# All rights reserved.
+# Author: Lauri T. Aarnio
+#
+# Licensed under GPL version 2
+
+progbase=`basename $0`
+
+echo "SB2: $progbase wrapper: Operation denied."
+echo "SB2: $progbase wrapper: You see this message because the real $progbase tool"
+echo "SB2: $progbase wrapper: is not available in this environment / mapping mode"
+
+# FIXME: host-* used to be links to /bin/true; return true for compatibility,
+# but we probably should do "exit 0" here...
+exit 0
+