Преглед на файлове

libobs: Set sane write permissions on directories

Prevent setting global writable permissions on newly created
directories.
Carl Fürstenberg преди 10 години
родител
ревизия
cf8c096f2e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      libobs/util/platform-nix.c

+ 1 - 1
libobs/util/platform-nix.c

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