-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
root: don't drop file before we've used it
It turns out that Rust will happily drop a File after you grab its RawFd if it doesn't have an explicit binding[1]. This causes a bunch of EBADF errors in basically all libpathrs methods which did this incorrectly. [1]: rust-lang/rust#54494 Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
- Loading branch information
Showing
1 changed file
with
18 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters