From f312de018b48853d166040908b0ba2bf666e26c1 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 6 Jul 2005 01:21:46 -0700 Subject: [PATCH] Let umask do its work upon filesystem object creation. IIRC our strategy was to let the users' umask take care of the final mode bits. This patch fixes places that deviate from it. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apply.c') diff --git a/apply.c b/apply.c index 701c01a3bc..c87cbf9eb3 100644 --- a/apply.c +++ b/apply.c @@ -1237,7 +1237,7 @@ static void create_subdirectories(const char *path) len = slash - path; memcpy(buf, path, len); buf[len] = 0; - if (mkdir(buf, 0755) < 0) { + if (mkdir(buf, 0777) < 0) { if (errno != EEXIST) break; } -- cgit v1.2.3