@matheusbsbs / matheus-bagliano / commits / 3ac0ebbba4
Fork 0

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 <junkio@cox.net>

Junio C Hamano committed Jan 7, 2006 at 15:11 UTC 3ac0ebbba4d2d47ca2f4a674afead830f76ca256
1 file changed +1 -1
tar-tree.c
+1 -1
@@ -433,7 +433,7 @@ int main(int argc, char **argv)
433 archive_time = time(NULL);
434 if (basedir)
435 write_header((unsigned char *)"0", TYPEFLAG_DIR, NULL, NULL,
436 - basedir, 040755, NULL, 0);
436 + basedir, 040777, NULL, 0);
437 traverse_tree(buffer, size, NULL);
438 free(buffer);
439 write_trailer();