rollup merge of #21733: mneumann/fix-io-rename-df

This commit is contained in:
Alex Crichton 2015-01-30 12:03:23 -08:00
commit f8b3d5c2db

View File

@ -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()),