aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-10-10 00:38:08 +0000
committerK. Richard Pixley <rich@cygnus>1991-10-10 00:38:08 +0000
commitdafcb8be38f729995017bb23dcaf2de37eed44fa (patch)
tree36db5a851018a56d564c905b6bf804348793d497 /configure
parent912456a503158ca8d6b12c5019ac00f0873b9e09 (diff)
downloadgdb-dafcb8be38f729995017bb23dcaf2de37eed44fa.zip
gdb-dafcb8be38f729995017bb23dcaf2de37eed44fa.tar.gz
gdb-dafcb8be38f729995017bb23dcaf2de37eed44fa.tar.bz2
Call config.sub as "/bin/sh config.sub" instead of directly. This
protects us from the case where config.sub isn't executable.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure b/configure
index 7dca445..55f8594 100755
--- a/configure
+++ b/configure
@@ -274,7 +274,7 @@ for host in ${hosts} ; do
host_alias=${host}
- result=`${configsub} ${host}`
+ result=`/bin/sh ${configsub} ${host}`
host_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
host_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
host_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
@@ -286,7 +286,7 @@ for host in ${hosts} ; do
for target in ${targets} ; do
target_alias=${target}
- result=`${configsub} ${target}`
+ result=`/bin/sh ${configsub} ${target}`
target_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
target_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
target_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
@@ -620,7 +620,11 @@ exit 0
#
#
# $Log$
-# Revision 1.52 1991/10/09 00:48:26 rich
+# Revision 1.53 1991/10/10 00:38:08 rich
+# Call config.sub as "/bin/sh config.sub" instead of directly. This
+# protects us from the case where config.sub isn't executable.
+#
+# Revision 1.52 1991/10/09 00:48:26 rich
# Another patch from jim.
#
# Revision 1.51 1991/10/08 06:07:58 wilson