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
Wed, Feb 25, 2:20 PM (6 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28479308
Default Alt Text
D55167.id171421.diff (360 B)

Event Timeline