diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-10-18 13:28:54 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-11-24 15:52:41 +0100 |
commit | 0c1a92102dc1cf17e32aacde6dc1f21584425711 (patch) | |
tree | bfaa4c21b2d6cf844318204b110c6f998f05e88e /lib/depcomp | |
parent | 5d84b891ff16e702cc273a0584e6746e7cd70458 (diff) | |
download | automake-0c1a92102dc1cf17e32aacde6dc1f21584425711.tar.gz |
depcomp: safer quoting in variable expansion
* lib/depcomp (pgcc): Here. Probably not needed, but since the
rest of the script seems to employ proper quoting, better to be
consistent.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'lib/depcomp')
-rwxr-xr-x | lib/depcomp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/depcomp b/lib/depcomp index fb818b026..af4b18cc4 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -365,24 +365,24 @@ pgcc) lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 - rmdir $lockdir + rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0 ; do # mkdir is a portable test-and-set. - if mkdir $lockdir 2>/dev/null; then + if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. - rmdir $lockdir + rmdir "$lockdir" break else ## the lock is being held by a different process, ## wait until the winning process is done or we timeout - while test -d $lockdir && test $i -gt 0; do + while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done |