mirror of
https://github.com/Motion-Project/motion.git
synced 2026-04-18 13:07:03 -04:00
Update directory permissions
Update mode on created directories Closes #1297
This commit is contained in:
@@ -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, '/');
|
||||
|
||||
Reference in New Issue
Block a user