summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-07-03 09:35:25 +0200
committerTom Hacohen <tom@stosb.com>2015-07-03 16:23:06 +0100
commit308dbff1410af9d3d3f9e22e2acf3ab7b3f4b14a (patch)
tree03bf1c23c17d8b1f29591127a76b37d9f411888e /src/lib/ecore_file
parenta46adde19da4a7e1b2d0b4b59b874689b73783c0 (diff)
Ecore_File: better implementation of ecore_file_mkdir()
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index d9ee50f4a8..db0a1e65c4 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -214,8 +214,7 @@ static mode_t default_mode = S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S
214EAPI Eina_Bool 214EAPI Eina_Bool
215ecore_file_mkdir(const char *dir) 215ecore_file_mkdir(const char *dir)
216{ 216{
217 if (mkdir(dir, default_mode) < 0) return EINA_FALSE; 217 return (mkdir(dir, default_mode) == 0);
218 return EINA_TRUE;
219} 218}
220 219
221/** 220/**