Skip to content

Commit dfa65bc

Browse files
g-papepaulusmack
authored andcommitted
gitk: Makefile/install: force permissions when installing files and dirs
The msg-files msgs/*.msg used to be installed with mode 755 although they're not executables. With this commit, files are forced to be installed with mode 644, directories and executables with mode 755. Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent b3449ae commit dfa65bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ endif
4040
all:: gitk-wish $(ALL_MSGFILES)
4141

4242
install:: all
43-
$(INSTALL) gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
44-
$(INSTALL) -d '$(DESTDIR_SQ)$(msgsdir_SQ)'
45-
$(foreach p,$(ALL_MSGFILES), $(INSTALL) $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
43+
$(INSTALL) -m 755 gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
44+
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(msgsdir_SQ)'
45+
$(foreach p,$(ALL_MSGFILES), $(INSTALL) -m 644 $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
4646

4747
uninstall::
4848
$(foreach p,$(ALL_MSGFILES), $(RM) '$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) &&) true

0 commit comments

Comments
 (0)