Skip to content

Commit 9907721

Browse files
g-papegitster
authored andcommitted
templates/Makefile: don't depend on local umask setting
Don't take the local umask setting into account when installing the templates/* files and directories, running 'make install' with umask set to 077 resulted in template/* installed with permissions 700 and 600. The problem was discovered by Florian Zumbiehl, reported through http://bugs.debian.org/467518 Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a6f13cc commit 9907721

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ boilerplates.made : $(bpsrc)
2929
case "$$boilerplate" in *~) continue ;; esac && \
3030
dst=`echo "$$boilerplate" | sed -e 's|^this|.|;s|--|/|g'` && \
3131
dir=`expr "$$dst" : '\(.*\)/'` && \
32-
mkdir -p blt/$$dir && \
32+
$(INSTALL) -d -m 755 blt/$$dir && \
3333
case "$$boilerplate" in \
3434
*--) ;; \
35-
*) cp $$boilerplate blt/$$dst ;; \
35+
*) cp -p $$boilerplate blt/$$dst ;; \
3636
esac || exit; \
3737
done && \
3838
date >$@
@@ -48,4 +48,4 @@ clean:
4848
install: all
4949
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_dir_SQ)'
5050
(cd blt && $(TAR) cf - .) | \
51-
(cd '$(DESTDIR_SQ)$(template_dir_SQ)' && $(TAR) xf -)
51+
(cd '$(DESTDIR_SQ)$(template_dir_SQ)' && umask 022 && $(TAR) xf -)

0 commit comments

Comments
 (0)