Commit 7a21c7f
committed
source: Don't dereference links when linking
This ensures overridden symlinks to directories are not attempted to be
linked as a subdir by `ln`.
e.g. with `build/core` already a symlink to something, the following
would not work:
```
$ mkdir -p build
$ ln -sf --relative build/make/core build/core
ln: failed to create symbolic link 'build/core/core': Permission denied
```
Observe how the destination is `build/core`, but the link attempted to
be created is `build/core/core`.
From the manpage:
> ```
> --no-dereference treat LINK_NAME as a normal file if it is a
> symbolic link to a directory
> ```1 parent d9f9781 commit 7a21c7f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments