Unified · Split
| @@ -231,6 +231,7 @@ pub fn real_path(path: &Path, cwd: &Path, max_symlinks: u8) -> Result<PathBuf, R · 230 unmodified lines | |||
| 231 | #[cfg(target_os = "windows")] | 231 | #[cfg(target_os = "windows")] |
| 232 | if let Some(Prefix(p)) = path.components().next() { | 232 | if let Some(Prefix(p)) = path.components().next() { |
| 233 | real_path.push(p.as_os_str()); | 233 | real_path.push(p.as_os_str()); |
| 234 | real_path.push("\\"); | ||
| 234 | } | 235 | } |
| 235 | 236 | ||
| 236 | if path.is_relative() { | 237 | if path.is_relative() { |