]> Sergey Matveev's repositories - nnn.git/commitdiff
Use mode=0755 when creating dirs
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 27 May 2019 13:25:43 +0000 (18:55 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 27 May 2019 14:46:55 +0000 (20:16 +0530)
src/nnn.c

index 9732c0f4bd38159888f52b00c8ed364bf1b5cc2b..9ebfebf89cba7f1e3f992bc1818548a4ae73637c 100644 (file)
--- 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;
        }