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;
}

View file

@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
#define PATCHLEVEL 21
#define PATCHLEVEL 22
#endif /* _PATCHLEVEL_H_ */