=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/ch.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/less/ch.c 2003/08/06 21:08:07 1.6 --- src/usr.bin/less/ch.c 2006/04/02 00:55:32 1.7 *************** *** 190,196 **** */ if (!(ch_flags & CH_CANSEEK)) return ('?'); ! if (lseek(ch_file, (off_t)pos, 0) == BAD_LSEEK) { error("seek error", NULL_PARG); clear_eol(); --- 190,196 ---- */ if (!(ch_flags & CH_CANSEEK)) return ('?'); ! if (lseek(ch_file, (off_t)pos, SEEK_SET) == BAD_LSEEK) { error("seek error", NULL_PARG); clear_eol(); *************** *** 620,626 **** } #endif ! if (lseek(ch_file, (off_t)0, 0) == BAD_LSEEK) { /* * Warning only; even if the seek fails for some reason, --- 620,626 ---- } #endif ! if (lseek(ch_file, (off_t)0, SEEK_SET) == BAD_LSEEK) { /* * Warning only; even if the seek fails for some reason, *************** *** 709,715 **** return (0); } #endif ! return (lseek(f, (off_t)1, 0) != BAD_LSEEK); } /* --- 709,715 ---- return (0); } #endif ! return (lseek(f, (off_t)1, SEEK_SET) != BAD_LSEEK); } /*