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 15c4316..17bdd26 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;
                }