Page MenuHomeFreeBSD

D55167.id171421.diff
No OneTemporary

D55167.id171421.diff

diff --git a/bin/cp/utils.c b/bin/cp/utils.c
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -216,7 +216,10 @@
if (!use_copy_file_range) {
wcount = copy_fallback(from_fd, to_fd);
}
- wtotal += wcount;
+ if (wcount < 0 && errno == EINTR)
+ wcount = 0;
+ if (wcount >= 0)
+ wtotal += wcount;
if (info) {
info = 0;
(void)fprintf(stderr,

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 16, 9:23 AM (18 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33985510
Default Alt Text
D55167.id171421.diff (360 B)

Event Timeline