Commit 0faf3f8a authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid non-portable Unix mode bits macros.

parent 3d3d4e2c
......@@ -2040,7 +2040,7 @@ static void _SHCreateSymbolicLinks(void)
for (i = 0; i < sizeof(aidsMyStuff)/sizeof(aidsMyStuff[0]); i++) {
strcpy(szMyStuffTarget, szPersonalTarget);
if (_SHAppendToUnixPath(szMyStuffTarget, MAKEINTRESOURCEW(aidsMyStuff[i])))
mkdir(szMyStuffTarget, S_IRWXU|S_IRWXG|S_IRWXO);
mkdir(szMyStuffTarget, 0777);
}
}
else
......@@ -2061,7 +2061,7 @@ static void _SHCreateSymbolicLinks(void)
for (i = 0; i < sizeof(aidsMyStuff)/sizeof(aidsMyStuff[0]); i++) {
strcpy(szMyStuffTarget, szPersonalTarget);
if (_SHAppendToUnixPath(szMyStuffTarget, MAKEINTRESOURCEW(aidsMyStuff[i])))
mkdir(szMyStuffTarget, S_IRWXU|S_IRWXG|S_IRWXO);
mkdir(szMyStuffTarget, 0777);
}
}
......
......@@ -813,7 +813,7 @@ static void apply_shell_folder_changes(void) {
if (!lstat(szBackupPath, &statPath) && S_ISDIR(statPath.st_mode)) {
rename(szBackupPath, szUnixPath);
} else {
mkdir(szUnixPath, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
mkdir(szUnixPath, 0777);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment