Commit 4ee8a03
committed
symlink_native: allow linking to
When running
CYGWIN=winsymlinks:nativestrict ln -s .. abc
the counter-intuitive result is _not_ a symbolic link to `..`, but
instead to `../../$(basename "$PWD")`.
The reason for this is that the search for the longest common prefix
assumes that the link target is not a strict prefix of the parent
directory of the link itself.
Let's fix that.
Signed-off-by: Johannes Schindelin <[email protected]>..
1 parent 1f8def9 commit 4ee8a03
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
2036 | 2045 | | |
2037 | 2046 | | |
2038 | 2047 | | |
| |||
2057 | 2066 | | |
2058 | 2067 | | |
2059 | 2068 | | |
2060 | | - | |
2061 | | - | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
2062 | 2073 | | |
2063 | 2074 | | |
2064 | 2075 | | |
| |||
0 commit comments