Skip to content

Commit f2c5a16

Browse files
committed
make install: ressource files should have 644 as permissions. Closes: #8638
1 parent 08299c0 commit f2c5a16

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

GNUmakefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ manpages: build-coreutils
388388
install-manpages: manpages
389389
mkdir -p $(DESTDIR)$(DATAROOTDIR)/man/man1
390390
$(foreach prog, $(INSTALLEES), \
391-
$(INSTALL) $(BUILDDIR)/man/$(PROG_PREFIX)$(prog).1 $(DESTDIR)$(DATAROOTDIR)/man/man1/ $(newline) \
391+
$(INSTALL) -m 644 $(BUILDDIR)/man/$(PROG_PREFIX)$(prog).1 $(DESTDIR)$(DATAROOTDIR)/man/man1/ $(newline) \
392392
)
393393
else
394394
install-manpages:
@@ -408,9 +408,9 @@ install-completions: completions
408408
mkdir -p $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions
409409
mkdir -p $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d
410410
$(foreach prog, $(INSTALLEES), \
411-
$(INSTALL) $(BUILDDIR)/completions/zsh/_$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/ $(newline) \
412-
$(INSTALL) $(BUILDDIR)/completions/bash/$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/ $(newline) \
413-
$(INSTALL) $(BUILDDIR)/completions/fish/$(PROG_PREFIX)$(prog).fish $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/ $(newline) \
411+
$(INSTALL) -m 644 $(BUILDDIR)/completions/zsh/_$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/ $(newline) \
412+
$(INSTALL) -m 644 $(BUILDDIR)/completions/bash/$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/ $(newline) \
413+
$(INSTALL) -m 644 $(BUILDDIR)/completions/fish/$(PROG_PREFIX)$(prog).fish $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/ $(newline) \
414414
)
415415
else
416416
install-completions:
@@ -422,7 +422,7 @@ locales:
422422
@if [ -d "$(BASEDIR)/src/uucore/locales" ]; then \
423423
mkdir -p "$(BUILDDIR)/locales/uucore"; \
424424
for locale_file in "$(BASEDIR)"/src/uucore/locales/*.ftl; do \
425-
$(INSTALL) -v "$$locale_file" "$(BUILDDIR)/locales/uucore/"; \
425+
$(INSTALL) -m 644 -v "$$locale_file" "$(BUILDDIR)/locales/uucore/"; \
426426
done; \
427427
fi; \
428428
# Copy utility-specific locales
@@ -431,7 +431,7 @@ locales:
431431
mkdir -p "$(BUILDDIR)/locales/$$prog"; \
432432
for locale_file in "$(BASEDIR)"/src/uu/$$prog/locales/*.ftl; do \
433433
if [ "$$(basename "$$locale_file")" != "en-US.ftl" ]; then \
434-
$(INSTALL) -v "$$locale_file" "$(BUILDDIR)/locales/$$prog/"; \
434+
$(INSTALL) -m 644 -v "$$locale_file" "$(BUILDDIR)/locales/$$prog/"; \
435435
fi; \
436436
done; \
437437
fi; \
@@ -444,7 +444,7 @@ install-locales:
444444
mkdir -p "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog"; \
445445
for locale_file in "$(BASEDIR)"/src/uu/$$prog/locales/*.ftl; do \
446446
if [ "$$(basename "$$locale_file")" != "en-US.ftl" ]; then \
447-
$(INSTALL) -v "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog/"; \
447+
$(INSTALL) -m 644 -v "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog/"; \
448448
fi; \
449449
done; \
450450
fi; \

0 commit comments

Comments
 (0)