git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Sixt <johannes.sixt@telecom.at>
Date
Aug 20, 2008, 15:36 UTC
Message-ID
<1219246585-31993-1-git-send-email-johannes.sixt@telecom.at>

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(-)
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
Next: Jeff King
Message 1 of 2 in “Install templates with the user and group of the installing personality”
  1. Install templates with the user and group of the installing personalityJohannes Sixt, Aug 20, 2008
  2. Jeff KingAug 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.