summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2013-04-06 14:23:59 +0200
committerPádraig Brady <P@draigBrady.com>2013-04-07 11:53:17 +0100
commitec02161aefab06bec919d10396900ce6fe87390d (patch)
treecf1310cd4e31d799e87c4cf96beb9dea30d8b0a0 /man
parente92d16f68a97575ed7112204b069514edc8d54a0 (diff)
downloadcoreutils-ec02161aefab06bec919d10396900ce6fe87390d.tar.xz
build: fix man page build failure with some permissions setups
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/
Diffstat (limited to 'man')
-rw-r--r--man/local.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/local.mk b/man/local.mk
index b5e6e21da..53debad46 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -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 $@