Changeset 1677 for zzuf


Ignore:
Timestamp:
Jan 16, 2007, 3:06:57 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Don't do the offset sanity check on non-seekable devices.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/load-fd.c

    r1676 r1677  
    170170    /* Sanity check, can be OK though (for instance with a character device) */
    171171#ifdef HAVE_LSEEK64
    172     if(lseek64_orig(fd, 0, SEEK_CUR) != _zz_getpos(fd))
     172    off64_t ret = lseek64_orig(fd, 0, SEEK_CUR);
    173173#else
    174     if(lseek_orig(fd, 0, SEEK_CUR) != _zz_getpos(fd))
    175 #endif
     174    off_t ret = lseek_orig(fd, 0, SEEK_CUR);
     175#endif
     176    if(ret != -1 && ret != _zz_getpos(fd))
    176177        debug("warning: offset inconsistency");
    177178}
Note: See TracChangeset for help on using the changeset viewer.