- Notifications
You must be signed in to change notification settings - Fork5
Commit8525419
committed
Don't try to trim "../" in join_path_components().
join_path_components() tried to remove leading ".." components from itstail argument, but it was not nearly bright enough to do so correctlyunless the head argument was (a) absolute and (b) canonicalized.Rather than try to fix that logic, let's just get rid of it: there is nocorrectness reason to remove "..", and cosmetic concerns can be takencare of by a subsequent canonicalize_path() call. Per bug #6715 fromGreg Davidson.Back-patch to all supported branches. It appears that pre-9.2, thisfunction is only used with absolute paths as head arguments, which is whywe'd not noticed the breakage before. However, third-party code might beexpecting this function to work in more general cases, so it seems wiseto back-patch.In HEAD and 9.2, also make some minor cosmetic improvements to callers.1 parentde479e2 commit8525419
3 files changed
+28
-33
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3314 | 3314 |
| |
3315 | 3315 |
| |
3316 | 3316 |
| |
3317 |
| - | |
| 3317 | + | |
3318 | 3318 |
| |
3319 | 3319 |
| |
3320 | 3320 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2052 | 2052 |
| |
2053 | 2053 |
| |
2054 | 2054 |
| |
2055 |
| - | |
2056 |
| - | |
| 2055 | + | |
| 2056 | + | |
2057 | 2057 |
| |
2058 |
| - | |
| 2058 | + | |
2059 | 2059 |
| |
2060 | 2060 |
| |
2061 | 2061 |
| |
|
Lines changed: 24 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
| 173 | + | |
| 174 | + | |
173 | 175 |
| |
174 | 176 |
| |
175 | 177 |
| |
| |||
182 | 184 |
| |
183 | 185 |
| |
184 | 186 |
| |
185 |
| - | |
186 |
| - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 |
| |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
213 | 195 |
| |
| 196 | + | |
| 197 | + | |
214 | 198 |
| |
215 |
| - | |
216 |
| - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
217 | 203 |
| |
218 | 204 |
| |
219 | 205 |
| |
| |||
705 | 691 |
| |
706 | 692 |
| |
707 | 693 |
| |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
708 | 703 |
| |
709 | 704 |
| |
710 | 705 |
| |
|
0 commit comments
Comments
(0)