Avoid another use of `chmod -R'.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 30 Mar 2010 15:12:27 +0000 (17:12 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 30 Mar 2010 18:59:49 +0000 (20:59 +0200)
* Makefile.am (path-check): To be safe, do not use `chmod -R' on
$(distdir) before removing it (as Solaris `chmod -R' touches
symlink targets).  Instead, use the cleanup strategy used in
distdir.am (which is also employed in tests/defs.in).

ChangeLog
Makefile.am
Makefile.in

index 74b2970..99e0f5f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       Avoid another use of `chmod -R'.
+       * Makefile.am (path-check): To be safe, do not use `chmod -R' on
+       $(distdir) before removing it (as Solaris `chmod -R' touches
+       symlink targets).  Instead, use the cleanup strategy used in
+       distdir.am.
+
 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Remove uses of @acronym and @sc.
index d176d7b..82e1aef 100644 (file)
@@ -483,7 +483,8 @@ path-check: distdir
 ## of files on stdin, at least.
          find . -print | xargs pathchk -p); \
          status=$$?; \
-         chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir); \
+         find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \
+         rm -rf $(distdir); \
          exit $$status
 
 ## Program to use to fetch files.
index 9088a0b..dd81522 100644 (file)
@@ -1153,7 +1153,8 @@ path-check: distdir
        (cd $(distdir) && \
          find . -print | xargs pathchk -p); \
          status=$$?; \
-         chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir); \
+         find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \
+         rm -rf $(distdir); \
          exit $$status
 
 fetch: