forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit387803d
committed
Fix lstat() for broken junction points on Windows.
When using junction points to emulate symlinks on Windows, one edge casewas not handled correctly by commitc5cb8f3: if a junction point isbroken (pointing to a non-existent path), we'd report ENOENT. Thisdoesn't break any known use case, but was noticed while developing atest suite for these functions and is fixed here for completeness.Also add translation ERROR_CANT_RESOLVE_FILENAME -> ENOENT, as that isone of the errors Windows can report for some kinds of broken paths.Discussion:https://postgr.es/m/CA%2BhUKG%2BajSQ_8eu2AogTncOnZ5me2D-Cn66iN_-wZnRjLN%2Bicg%40mail.gmail.com1 parent4650036 commit387803d
2 files changed
+25
-5
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 |
| |
171 | 174 |
| |
172 | 175 |
| |
|
Lines changed: 22 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
129 |
| - | |
130 |
| - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
131 | 146 |
| |
132 | 147 |
| |
133 | 148 |
| |
134 | 149 |
| |
135 | 150 |
| |
136 |
| - | |
| 151 | + | |
137 | 152 |
| |
138 | 153 |
| |
139 | 154 |
| |
| |||
169 | 184 |
| |
170 | 185 |
| |
171 | 186 |
| |
| 187 | + | |
172 | 188 |
| |
173 | 189 |
| |
174 | 190 |
| |
175 |
| - | |
| 191 | + | |
| 192 | + | |
176 | 193 |
| |
177 | 194 |
| |
178 | 195 |
| |
|
0 commit comments
Comments
(0)