Skip to content
Snippets Groups Projects
Commit 39cc80bb authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

No commit message

No commit message
parent 407a94a8
No related branches found
No related tags found
No related merge requests found
...@@ -1317,7 +1317,11 @@ bool chmod(std::string fileName){ ...@@ -1317,7 +1317,11 @@ bool chmod(std::string fileName){
struct stat info; struct stat info;
stat(fileName.c_str(), &info); stat(fileName.c_str(), &info);
// chmod u=rwx // chmod u=rwx
if (chmod(fileName.c_str(), 0000700) != 0){ #if defined(WIN32)
if (_chmod(fileName.c_str(), _S_IREAD | _S_IWRITE) != 0){
#else
if (chmod(fileName.c_str(), S_IRWXU) != 0){
#endif
perror("chmod() error"); perror("chmod() error");
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment