Commit aeb39fa
committed
rsync: use a more robust check for relative link than "startswith"
`startswith` is incorrect for paths in general, e.g. doesn't handle
Windows extended-length paths and other such.
The particular code here also wasn't careful about `/a/bc` not being
relative to `/a/b`.1 parent f90854b commit aeb39fa
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | 176 | | |
178 | | - | |
179 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
| |||
0 commit comments