mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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/
This commit is contained in:
1 parent
e92d16f68a
commit
ec02161aef
1 file changed
+1
-1
+1
-1
@@ -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 $@
|
||||
Reference in new issue
Block a user