summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io.c b/io.c
index 6bab4f9378..00f9abc2c5 100644
--- a/io.c
+++ b/io.c
@@ -10062,8 +10062,6 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
stp->error_no = errno;
return -1;
}
- if ((dst_stat.st_mode & S_IFMT) != S_IFSOCK)
- return 0;
src_offset = stp->src_offset;
use_pread = src_offset != (off_t)-1;