We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1219014 commit d19e2deCopy full SHA for d19e2de
library/std/src/sys/unix/fs.rs
@@ -1126,7 +1126,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
1126
1127
// Kernel prior to 4.5 don't have copy_file_range
1128
// We store the availability in a global to avoid unnecessary syscalls
1129
- static HAS_COPY_FILE_RANGE: AtomicBool = AtomicBool::new(true);
+ static HAS_COPY_FILE_RANGE: AtomicBool = AtomicBool::new(false);
1130
1131
unsafe fn copy_file_range(
1132
fd_in: libc::c_int,
0 commit comments