From: Junio C Hamano Date: Sat, 7 Jan 2006 23:11:11 +0000 (-0800) Subject: tar-tree: finish honoring extractor's umask in git-tar-tree. X-Git-Tag: v1.0.8^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3ac0ebbba4d2d47ca2f4a674afead830f76ca256;p=git.git tar-tree: finish honoring extractor's umask in git-tar-tree. 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 --- diff --git a/tar-tree.c b/tar-tree.c index 96bd1438d..f749d4b86 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();