mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
smbd: Return correct error for fallback sendfile
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
9115836687
commit
6f0628c848
@ -304,6 +304,7 @@ normal_read:
|
||||
}
|
||||
nread = fake_sendfile(xconn, fsp, in_offset, in_length);
|
||||
if (nread == -1) {
|
||||
saved_errno = errno;
|
||||
DBG_ERR("fake_sendfile failed for file %s (%s) for client %s. "
|
||||
"Terminating\n",
|
||||
fsp_str_dbg(fsp),
|
||||
|
Loading…
x
Reference in New Issue
Block a user