Compare commits
7 commits
838ae0755b
...
6344577a40
Author | SHA1 | Date | |
---|---|---|---|
6344577a40 | |||
e576e6e579 | |||
10a745899d | |||
0db3bd40fe | |||
74977947d9 | |||
8404b9fd8e | |||
35791fe389 |
1 changed files with 2 additions and 6 deletions
|
@ -794,12 +794,8 @@ mod canonicalize {
|
|||
let link = fs.path(&link_path);
|
||||
file.soft_link(&link).expect("create");
|
||||
let canonical = link.canonicalize().expect("canonicalize");
|
||||
let canonical = if canonical.starts_with("/private") {
|
||||
// INFO: macos puts all temp files under /private
|
||||
Path::new("/").join(canonical.strip_prefix("/private").unwrap())
|
||||
} else {
|
||||
canonical
|
||||
};
|
||||
// macos puts all temp files under /private
|
||||
let canonical = Path::new("/").join(canonical.strip_prefix("/private").unwrap());
|
||||
assert_eq!(canonical, file_path);
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue