Commit 1abeeb7
committed
base/stat.jl: Mask
This fixes #26685, where libuv
decided to throw `UV_EINVAL` on windows for invalid-filepaths such as
`foo??` or `http://google.com`, instead of returning `UV_ENOENT` as they
were previously [0]. This causes windows to throw errors on calls such
as `isfile("http://google.com")`, whereas other platforms simply return
`false`. This change simply ignores `UV_EINVAL` alongside the other
"allowed failure" error codes.
[0] libuv/libuv#1088UV_EINVAL error codes for jl_stat
1 parent dd56dbf commit 1abeeb7
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
0 commit comments