Repository navigation
Commit 029a31e
committed
Fall back to an NTFS junction when the symlink escape test can't create a symlink
Windows only lets elevated processes, or any process once Developer Mode is
on, create symlinks, so test_safe_join_rejects_symlink_escape errored with
WinError 1314 on an ordinary developer machine while passing on the hosted
runners (which are both elevated and have Developer Mode enabled). A junction
needs no privilege and Path.resolve() follows it the same way, so the
containment assertion still runs there instead of being skipped.
Fixes #34081 parent d639cf7 commit 029a31e
1 file changed
Lines changed: 9 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
0 commit comments