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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to