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:
Mike McCormack 2011-01-24 01:59:09 +00:00 committed by Mike Blumenkrantz
parent e7c983aaec
commit 67c261a8af
1 changed files with 1 additions and 1 deletions

View File

@ -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);