Use __e for errno
authorJens Axboe <jens.axboe@oracle.com>
Tue, 9 Jun 2009 13:23:38 +0000 (15:23 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 9 Jun 2009 13:23:38 +0000 (15:23 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index 15c431603718291d04b3ab50cf623ea6c83b80c7..17bdd2639f6ce3cc75e192063c1c5276ba6076e0 100644 (file)
@@ -436,7 +436,7 @@ open_again:
                char buf[FIO_VERROR_SIZE];
                int __e = errno;
 
-               if (errno == EPERM && (flags & FIO_O_NOATIME)) {
+               if (__e == EPERM && (flags & FIO_O_NOATIME)) {
                        flags &= ~FIO_O_NOATIME;
                        goto open_again;
                }