Make ecore_file_exists return true for "/", so we can monitor that dir

SVN revision: 16378
This commit is contained in:
lordchaos 2005-08-27 04:17:36 +00:00 committed by lordchaos
parent 5e18e6ef44
commit a228627e6c
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ ecore_file_exists(const char *file)
{
struct stat st;
if (stat(file, &st) < 0) return 0;
/*Workaround so that "/" returns a true, otherwise we can't monitor "/" in ecore_file_monitor*/
if (stat(file, &st) < 0 && strcmp(file, "/")) return 0;
return 1;
}