Bash-4.2 patch 22

This commit is contained in:
Chet Ramey 2012-03-13 15:11:43 -04:00
commit ea6616c01e
2 changed files with 3 additions and 4 deletions

View file

@ -160,14 +160,13 @@ void
zsyncfd (fd)
int fd;
{
off_t off;
int r;
off_t off, r;
off = lused - lind;
r = 0;
if (off > 0)
r = lseek (fd, -off, SEEK_CUR);
if (r >= 0)
if (r != -1)
lused = lind = 0;
}