From: Richard Stallman Date: Thu, 7 Jan 1993 00:31:40 +0000 (+0000) Subject: Don't "make LIB absolute" if already absolute, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=160faa076c8c48d724cdbf18556c74f4631421da;p=gcc.git Don't "make LIB absolute" if already absolute, to avoid problems with the automounter. From-SVN: r3137 --- diff --git a/gcc/fixinc.sco b/gcc/fixinc.sco index c28039d7065..ad849892cca 100755 --- a/gcc/fixinc.sco +++ b/gcc/fixinc.sco @@ -58,8 +58,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 echo 'Building fixincludes in ' ${LIB} diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index d597bc62bcc..b2572cb94bd 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.