threads / patch / 15109

patchInstall templates with the user and group of the installing personality

Subject: [PATCH] Install templates with the user and group of the installing personality

## tl;dr

2 messages between Aug 20, 2008 and Aug 20, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Johannes Sixt· Aug 20, 2008, 15:36 UTC · lore

If 'make install' was run with sufficient privileges, then the installed templates, which are copied using 'tar', would receive the user and group of whoever built git. This instructs 'tar' to ignore the user and group that are recorded in the archive.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
---
 I hope this tar option 'o' is universal enough. Even my ancient AIX 4.3.3
 box has it.
 -- Hannes
 templates/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to templates/Makefile +1 −1
diff --git a/templates/Makefile b/templates/Makefile
index 9f3f1fc..cc3fc30 100644
--- a/templates/Makefile
+++ b/templates/Makefile
@@ -48,4 +48,4 @@ clean:
 install: all
 	$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_instdir_SQ)'
 	(cd blt && $(TAR) cf - .) | \
-	(cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xf -)
+	(cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xfo -)
-- 
1.6.0.rc2.31.g4f33a
Jeff King· Aug 20, 2008, 17:20 UTC · re: Johannes Sixt · lore

Re: [PATCH] Install templates with the user and group of the installing personality

On Wed, Aug 20, 2008 at 05:36:25PM +0200, Johannes Sixt wrote:
>  I hope this tar option 'o' is universal enough. Even my ancient AIX 4.3.3
>  box has it.
The oldest thing I have is Solaris 5.8, which also has it.
-Peff

← back to recent threads