aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-01-07 00:31:40 +0000
committerRichard Stallman <rms@gnu.org>1993-01-07 00:31:40 +0000
commit160faa076c8c48d724cdbf18556c74f4631421da (patch)
tree211654d15a0672a479095715586777d508cd737d /gcc/fixinc.svr4
parentb7526ea509abf31774a6a99e8ead135c01da1e22 (diff)
downloadgcc-160faa076c8c48d724cdbf18556c74f4631421da.zip
gcc-160faa076c8c48d724cdbf18556c74f4631421da.tar.gz
gcc-160faa076c8c48d724cdbf18556c74f4631421da.tar.bz2
Don't "make LIB absolute" if already absolute,
to avoid problems with the automounter. From-SVN: r3137
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-xgcc/fixinc.svr411
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index d597bc6..b2572cb 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -53,8 +53,15 @@ fi
ORIG_DIR=`pwd`
-# Make LIB absolute.
-cd $LIB; LIB=`pwd`
+# Make LIB absolute if it is relative.
+# Don't do this if not necessary, since may screw up automounters.
+case $LIB in
+/*)
+ ;;
+*)
+ cd $LIB; LIB=`${PWDCMD}`
+ ;;
+esac
# This prevents /bin/ex from failing if the current terminal type is
# unrecognizable.