Update directory permissions

Update mode on created directories

Closes #1297
This commit is contained in:
Mr-DaveDev
2021-07-30 20:16:54 -06:00
committed by GitHub
parent ea2b2a9ddb
commit 0badad73fa

View File

@@ -246,7 +246,7 @@ void *myrealloc(void *ptr, size_t size, const char *desc)
int mycreate_path(const char *path)
{
char *start;
mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
if (path[0] == '/') {
start = strchr(path + 1, '/');