Skip to content

Commit ad60784

Browse files
authored
fix: copy_file_range fd_in arg on Linux/Android (#2173)
* fix: copy_file_range fd_in arg on Linux/Android * trigger CI * trigger CI
1 parent a388118 commit ad60784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fcntl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ pub fn copy_file_range<Fd1: AsFd, Fd2: AsFd>(
713713
let ret = unsafe {
714714
libc::syscall(
715715
libc::SYS_copy_file_range,
716-
fd_in,
716+
fd_in.as_fd().as_raw_fd(),
717717
off_in,
718718
fd_out.as_fd().as_raw_fd(),
719719
off_out,

0 commit comments

Comments
 (0)