diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2014-07-11 10:28:53 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-07-11 10:28:53 -0700 |
| commit | c9a1635c3855e8a201e330b2548c2ee24159b25d (patch) | |
| tree | a1f11490d04f1164ac93148d0286066ba8e17fe9 | |
| parent | 46b7604ea4e0a27db09be6cc9e980812bde142bf (diff) | |
| download | emacs-c9a1635c3855e8a201e330b2548c2ee24159b25d.tar.gz | |
* Makefile.in (install-arch-indep): Avoid readdir race.
Fixes: debbugs:17971
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Makefile.in | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 07954be7d6b..cdf4152bc0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-07-11 Paul Eggert <eggert@cs.ucla.edu> + + * Makefile.in (install-arch-indep): Avoid readdir race (Bug#17971). + 2014-06-20 Paul Eggert <eggert@cs.ucla.edu> * configure.ac: Warn about --enable-link-time-optimization's issues diff --git a/Makefile.in b/Makefile.in index 76a030407b9..103b035a3c9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -615,8 +615,9 @@ install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA} [ -z "${GZIP_PROG}" ] || { \ echo "Compressing *.el ..." && \ cd "$(DESTDIR)${lispdir}" && \ - find . -name '*.elc' -exec $(SHELL) -c \ - '${GZIP_PROG} -9n `expr "$$1" : "\\(.*\\)c"`' dummy '{}' ';'; \ + for f in `find . -name "*.elc" -print | sed 's/.elc$$/.el/'`; do \ + ${GZIP_PROG} -9n "$$f"; \ + done; \ } -chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS} |
