forked from enlightenment/efl
From: Mike McCormack <mj.mccormack@samsung.com>
ecore_config code may end up closing stdin, due to assuming 0 is a valid fd. I know this code is deprecated, and it's being kept around "for reference". Either: A) this bug should still be fixed so bad code is not copied elsewhere OR B) ecore_config should be deleted so bad code is not copied elsewhere thanks, Mike SVN revision: 56275
This commit is contained in:
parent
e7c983aaec
commit
67c261a8af
|
@ -1636,7 +1636,7 @@ ecore_config_init_global(const char *name)
|
|||
snprintf(buf, PATH_MAX, "%s/.ecore/%s/.global", p, name);
|
||||
global = creat(buf, S_IRWXU);
|
||||
|
||||
if (global)
|
||||
if (global >= 0)
|
||||
close(global);
|
||||
|
||||
free(buf);
|
||||
|
|
Loading…
Reference in New Issue