We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93d830e + 6b47920 commit f4301a2Copy full SHA for f4301a2
src/bootstrap/dist.rs
@@ -1183,7 +1183,11 @@ impl Step for PlainSourceTarball {
1183
// characters and on `C:\` paths, so normalize both of them away.
1184
pub fn sanitize_sh(path: &Path) -> String {
1185
let path = path.to_str().unwrap().replace("\\", "/");
1186
- return change_drive(&path).unwrap_or(path);
+ return change_drive(unc_to_lfs(&path)).unwrap_or(path);
1187
+
1188
+ fn unc_to_lfs(s: &str) -> &str {
1189
+ if s.starts_with("//?/") { &s[4..] } else { s }
1190
+ }
1191
1192
fn change_drive(s: &str) -> Option<String> {
1193
let mut ch = s.chars();
0 commit comments