rollup merge of #21733: mneumann/fix-io-rename-df
This commit is contained in:
commit
f8b3d5c2db
@ -196,7 +196,7 @@ pub fn load_self() -> Option<Vec<u8>> {
|
||||
|
||||
#[cfg(target_os = "dragonfly")]
|
||||
pub fn load_self() -> Option<Vec<u8>> {
|
||||
use std::io;
|
||||
use old_io;
|
||||
|
||||
match old_io::fs::readlink(&Path::new("/proc/curproc/file")) {
|
||||
Ok(path) => Some(path.into_vec()),
|
||||
|
Loading…
Reference in New Issue
Block a user