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

[PATCH] tar-tree: finish honoring extractor's umask in git-tar-tree.

From
Junio C Hamano <junkio@cox.net>
Date
Jan 7, 2006, 23:21 UTC
Message-ID
<7vace7aak5.fsf@assigned-by-dhcp.cox.net>

Earlier commit 38ec15a973a1f075f0d94d130b0ef279562921cd forgot to apply the same principle of not forcing go-w to the base directory when specified.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 * This will be in fixes branch to be slurped into both maint
   and master.  Please do not extract the kernel tarball as root
   user, especially if you do not know how tar command works for
   root user by default (hint: --no-same-permissions).
 tar-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
3ac0ebbba4d2d47ca2f4a674afead830f76ca256
diff --git a/tar-tree.c b/tar-tree.c
index 96bd143..f749d4b 100644
--- a/tar-tree.c
+++ b/tar-tree.c
@@ -433,7 +433,7 @@ int main(int argc, char **argv)
 		archive_time = time(NULL);
 	if (basedir)
 		write_header((unsigned char *)"0", TYPEFLAG_DIR, NULL, NULL,
-			basedir, 040755, NULL, 0);
+			basedir, 040777, NULL, 0);
 	traverse_tree(buffer, size, NULL);
 	free(buffer);
 	write_trailer();
-- 
1.0.7-g0263
Message 1 of 1 in “tar-tree: finish honoring extractor's umask in git-tar-tree.”
  1. tar-tree: finish honoring extractor's umask in git-tar-tree.Junio C Hamano, Jan 7, 2006

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.