]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix man page build failure with some permissions setups
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 6 Apr 2013 12:23:59 +0000 (14:23 +0200)
committerPádraig Brady <P@draigBrady.com>
Sun, 7 Apr 2013 10:53:17 +0000 (11:53 +0100)
Use the more portable 'chmod a-w', instead of the 'chmod -w' form.
The latter is not always supported.  Also its operation is
dependent on umask controlling the permissions bits for new files,
which is not the case in the presence of POSIX default ACLs for e.g.
In that case, chmod may print a warning like the following, and
exit with failure status:

chmod: man/hostid.1-t: new permissions are r--rw-r--, not r--r--r--

* man/local.mk: s/-w/a-w/

man/local.mk

index b5e6e21da964901d0856784c605218ba4e1bf318..53debad46de858f324379386e9273c9ca7263993 100644 (file)
@@ -192,5 +192,5 @@ man/yes.1:       src/yes
                     --output=$$t/$$name.1 $$t/$$name                   \
          && sed 's|$*\.td/||g' $$t/$$name.1 > $@-t                     \
          && rm -rf $$t                                                 \
-         && chmod -w $@-t                                              \
+         && chmod a-w $@-t                                             \
          && mv $@-t $@