-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed as not planned
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Code:
use std::fs;
fn main() {
fs::copy("foo", "bar").unwrap();
}
If I ensure "foo" exists and run the above program under valgrind on Linux, I get:
==75959== Warning: invalid file descriptor -1 in syscall copy_file_range(fd_in)()
The docs say copy_file_range
may be used on Linux. Maybe it is used incorrectly? The file does get copied though.
This warning appears when the program is built with stable (1.76.0) and nightly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.