mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
support/shell-container.c: Use support_copy_file_range
Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
parent
599f7beee7
commit
6e36266cec
@ -1,3 +1,9 @@
|
||||
2018-11-02 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* support/shell-container.c (copy_func): Call
|
||||
support_copy_file_range instead of copy_file_range to support
|
||||
cross-device copies.
|
||||
|
||||
2018-11-02 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* support/test-container.c: Include <libc-pointer-arith.h> for
|
||||
|
@ -119,7 +119,7 @@ copy_func (char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (copy_file_range (sfd, 0, dfd, 0, st.st_size, 0) != st.st_size)
|
||||
if (support_copy_file_range (sfd, 0, dfd, 0, st.st_size, 0) != st.st_size)
|
||||
{
|
||||
fprintf (stderr, "cp: cannot copy file %s to %s: %s\n",
|
||||
sname, dname, strerror (errno));
|
||||
|
Loading…
Reference in New Issue
Block a user