We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd26e4e commit a122d55Copy full SHA for a122d55
library/std/src/sys/unix/fs.rs
@@ -1209,7 +1209,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
1209
1210
// Kernel prior to 4.5 don't have copy_file_range
1211
// We store the availability in a global to avoid unnecessary syscalls
1212
- static HAS_COPY_FILE_RANGE: AtomicBool = AtomicBool::new(true);
+ static HAS_COPY_FILE_RANGE: AtomicBool = AtomicBool::new(false);
1213
1214
unsafe fn copy_file_range(
1215
fd_in: libc::c_int,
0 commit comments