*** ../bash-4.2-patched/lib/sh/zread.c Mon Mar 2 08:54:45 2009 --- lib/sh/zread.c Thu Jul 28 18:16:53 2011 *************** *** 161,166 **** int fd; { ! off_t off; ! int r; off = lused - lind; --- 161,165 ---- int fd; { ! off_t off, r; off = lused - lind; *************** *** 169,173 **** r = lseek (fd, -off, SEEK_CUR); ! if (r >= 0) lused = lind = 0; } --- 168,172 ---- r = lseek (fd, -off, SEEK_CUR); ! if (r != -1) lused = lind = 0; }