diff --git a/src/fcntl.rs b/src/fcntl.rs index 5dd05751cf..3b37356027 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -712,7 +712,7 @@ pub fn copy_file_range( let ret = unsafe { libc::syscall( libc::SYS_copy_file_range, - fd_in, + fd_in.as_fd().as_raw_fd(), off_in, fd_out.as_fd().as_raw_fd(), off_out,