Bash-4.2 patch 22
This commit is contained in:
parent
952a575888
commit
ea6616c01e
2 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue