libobs: Set sane write permissions on directories

Prevent setting global writable permissions on newly created
directories.
master
Carl Fürstenberg 2015-06-21 15:10:57 -07:00 committed by jp9000
parent 2dfed30509
commit cf8c096f2e
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ int os_rmdir(const char *path)
int os_mkdir(const char *path) int os_mkdir(const char *path)
{ {
if (mkdir(path, 0777) == 0) if (mkdir(path, 0755) == 0)
return MKDIR_SUCCESS; return MKDIR_SUCCESS;
return (errno == EEXIST) ? MKDIR_EXISTS : MKDIR_ERROR; return (errno == EEXIST) ? MKDIR_EXISTS : MKDIR_ERROR;