1
0
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:
Volker Lendecke 2024-05-21 10:12:22 +02:00 committed by Andrew Bartlett
parent 9115836687
commit 6f0628c848

View File

@ -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),