Complement of last commit, same return to mkdir condition.

This commit is contained in:
Jose Marcial Vieira Bisneto 2017-02-02 19:44:32 -03:00
parent be4bee3119
commit 2431aba246

View file

@ -52,6 +52,7 @@ int ipfs_flatfs_create_directory(const char* full_directory) {
// it is not there, create it
#ifdef __MINGW32__
if (mkdir(full_directory) == -1)
return 0;
#else
if (mkdir(full_directory, S_IRWXU) == -1)
return 0;