From 75768ad29ec1a17eafd1a3c80a661952b1e838a4 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 27 May 2019 18:55:43 +0530 Subject: [PATCH] Use mode=0755 when creating dirs --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 9732c0f4..9ebfebf8 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2538,7 +2538,7 @@ static bool create_dir(const char *path) if (errno != ENOENT) return FALSE; - if (mkdir(path, 0777) == -1) + if (mkdir(path, 0755) == -1) return FALSE; }