X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=osl.c;h=31b40c2c8d84c58cdfe5537faf7124f254196e15;hb=201ba21a594fe7a1392bf1548b6c9a86ce572508;hp=af448b4410890afda7a29fb446d63a6e43f46110;hpb=68aa66b6f051083b8f9fe9cf65b0a20fed4363f9;p=osl.git diff --git a/osl.c b/osl.c index af448b4..31b40c2 100644 --- a/osl.c +++ b/osl.c @@ -11,8 +11,7 @@ #include "log.h" #include "osl.h" #include "error.h" -#include "fd.h" -#include "list.h" +#include "util.h" #include "osl_core.h" /* Taken from Drepper: How to write shared libraries, Appendix B. */ @@ -658,11 +657,12 @@ static int map_column(struct osl_table *t, unsigned col_num) { struct stat statbuf; char *filename = column_filename(t, col_num); - int ret = -E_OSL_STAT; + int ret; if (!filename) return -ERRNO_TO_ERROR(ENOMEM); - if (stat(filename, &statbuf) < 0) { + ret = osl_stat(filename, &statbuf); + if (ret < 0) { free(filename); return ret; }