mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-07 22:12:05 +08:00
need that one too
This commit is contained in:
@@ -92,6 +92,7 @@ static int mkdir_p(std::string path) {
|
||||
if (mkdir(_path, 0777) != 0) {
|
||||
if (errno != EEXIST) return -1;
|
||||
}
|
||||
chmod(_path, 0777);
|
||||
umask(prev_mask);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user