diff options
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/file_win32.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libnative/io/file_win32.rs b/src/libnative/io/file_win32.rs index 9fe57536da3..e880bd05cf7 100644 --- a/src/libnative/io/file_win32.rs +++ b/src/libnative/io/file_win32.rs @@ -433,6 +433,7 @@ pub fn readlink(p: &CString) -> IoResult<Path> { libc::VOLUME_NAME_DOS) }); let ret = match ret { + Some(ref s) if s.starts_with(r"\\?\") => Ok(Path::new(s.slice_from(4))), Some(s) => Ok(Path::new(s)), None => Err(super::last_error()), }; |
