projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a46adde
)
Ecore_File: better implementation of ecore_file_mkdir()
author
Vincent Torri
<vincent.torri@gmail.com>
Fri, 3 Jul 2015 07:35:25 +0000
(09:35 +0200)
committer
Tom Hacohen
<tom@stosb.com>
Fri, 3 Jul 2015 15:23:06 +0000
(16:23 +0100)
src/lib/ecore_file/ecore_file.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_file/ecore_file.c
b/src/lib/ecore_file/ecore_file.c
index
d9ee50f
..
db0a1e6
100644
(file)
--- 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
EAPI Eina_Bool
ecore_file_mkdir(const char *dir)
{
- if (mkdir(dir, default_mode) < 0) return EINA_FALSE;
- return EINA_TRUE;
+ return (mkdir(dir, default_mode) == 0);
}
/**