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 /Makefile.in | |
parent | 46b7604ea4e0a27db09be6cc9e980812bde142bf (diff) | |
download | emacs-c9a1635c3855e8a201e330b2548c2ee24159b25d.tar.gz |
* Makefile.in (install-arch-indep): Avoid readdir race.
Fixes: debbugs:17971
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 5 |
1 files changed, 3 insertions, 2 deletions
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} |