--- util-linux-2.13/mount/lomount.c.fix 2008-03-24 13:24:24 +0300 +++ util-linux-2.13/mount/lomount.c 2008-03-24 13:25:09 +0300 @@ -625,8 +625,11 @@ set_loop(const char *device, const char } } mode = (*options & SETLOOP_RDONLY) ? O_RDONLY : O_RDWR; +#ifdef O_LARGEFILE + mode |= O_LARGEFILE; +#endif if ((ffd = open(file, mode)) < 0) { if (!(*options & SETLOOP_RDONLY) && errno == EROFS) ffd = open(file, mode = O_RDONLY); if (ffd < 0) {