X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=util.h;h=79b0d0eb778457d079d207a2537cf6acb5629b19;hb=cf207dcadaa03addb1381012f9b822a754a526af;hp=f4c26ad4934f0b465020732c1397d227c99eb979;hpb=22abcc2013d2f68ec55e5e0113c682899662c7d7;p=osl.git diff --git a/util.h b/util.h index f4c26ad..79b0d0e 100644 --- a/util.h +++ b/util.h @@ -50,5 +50,5 @@ _static_inline_ int osl_stat(const char *path, struct stat *buf) { if (stat(path, buf) >= 0) return 1; - return -E_OSL_STAT; + return errno == ENOENT? -E_OSL_NOENT : -E_OSL_STAT; }