X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=util.h;h=70beae4d657c626963935a7c0406bd9a2084443d;hp=f4c26ad4934f0b465020732c1397d227c99eb979;hb=7517d207f55baf6955184ea0f24ae38b068861a6;hpb=1c580157d0fe6dc4dc0c10f97d9f9000a354b0d3 diff --git a/util.h b/util.h index f4c26ad..70beae4 100644 --- a/util.h +++ b/util.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2008 Andre Noll + * Copyright (C) 2006-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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; }