Skip to content

Commit

Permalink
Replace ACCESSPERMS by more compatible alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed May 13, 2020
1 parent ca60c83 commit f5f05de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/ftp/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ std::string fs_canonical(const std::string& path)

bool fs_create_directory(const std::string& path)
{
return (mkdir(path.c_str(), ACCESSPERMS) == 0);
return (mkdir(path.c_str(), (S_IRWXU|S_IRWXG|S_IRWXO)) == 0);
}

bool fs_remove(const std::string& path)
Expand Down

0 comments on commit f5f05de

Please sign in to comment.