mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't remember an EINTR, since the caller may want to restart the call.
This commit is contained in:
parent
ff5fb8ad24
commit
e238d2a8da
1 changed files with 4 additions and 2 deletions
|
|
@ -348,7 +348,8 @@ _ftp_readfn(void *v, char *buf, int len)
|
|||
io->eof = 1;
|
||||
return _ftp_closefn(v);
|
||||
}
|
||||
io->err = errno;
|
||||
if (errno != EINTR)
|
||||
io->err = errno;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -374,7 +375,8 @@ _ftp_writefn(void *v, const char *buf, int len)
|
|||
w = write(io->dsd, buf, len);
|
||||
if (w >= 0)
|
||||
return w;
|
||||
io->err = errno;
|
||||
if (errno != EINTR)
|
||||
io->err = errno;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue