summaryrefslogtreecommitdiff
path: root/src/tc-io.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-11-21 09:56:39 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-11-21 09:56:39 +0100
commit4018301a59dc6f1cef1c046640f0f0e4a7839a3d (patch)
tree111b91a23e747bb2c9df60b0170914cbbd74dec3 /src/tc-io.c
parentd391e80c7378e6604c8f84538f27df8b915ebd2a (diff)
parent45e1231149779c363c9abb78cc09e21d047c463f (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/tc-io.c')
-rw-r--r--src/tc-io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tc-io.c b/src/tc-io.c
index 639ebcc..77baf01 100644
--- a/src/tc-io.c
+++ b/src/tc-io.c
@@ -20,7 +20,10 @@ static void sf(void)
return;
}
ssize_t ret = HX_sendfile(dst, src, SIZE_MAX);
- printf("sendfile transferred %zd bytes\n", ret);
+ if (ret < 0)
+ printf("sendfile: %s\n", strerror(errno));
+ else
+ printf("sendfile transferred %zd bytes\n", ret);
close(dst);
close(src);
}