[Mesa-dev] [PATCH] util/disk_cache: use stat() to check if entry is a directory

Jan Ziak 0xe2.0x9a.0x9b at gmail.com
Fri Feb 10 16:20:04 UTC 2017


Hello

Mesa should check that return value of stat() equals 0.

if (stat_retval == 0 && !S_ISREG(sb.st_mode))
       return false;

...

if (stat_retval == 0 && !S_ISDIR(sb.st_mode))
       return false;

Jan


More information about the mesa-dev mailing list