Get rid of E_OSL_STAT.
[osl.git] / osl.c
diff --git a/osl.c b/osl.c
index af448b4..44e09d0 100644 (file)
--- a/osl.c
+++ b/osl.c
@@ -658,11 +658,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;
        }