Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't break moving symlinks #749

Open
jelly opened this issue Sep 24, 2024 · 1 comment
Open

Don't break moving symlinks #749

jelly opened this issue Sep 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jelly
Copy link
Member

jelly commented Sep 24, 2024

Moving symlinks now breaks, while it should not:

Relative symlinks

For example moving the /etc/os-release symlinks to your home directory /home/admin. This breaks:

├── foo
│   ├── bar
│   │   └── link-foo -> ../storage/foo.txt
│   └── storage
│       └── foo.txt

Now move link-foo to somewhere else and it will break. Moving in files is implemented using copy & paste

@jelly jelly added the bug Something isn't working label Sep 24, 2024
@garrett
Copy link
Member

garrett commented Sep 24, 2024

(Note: @jelly and I talked about this already. To clarify it for others: This is about moving the symlinks themselves, both absolute and relative. This is not about moving the origin files that the symlinks link to, which would be much more difficult and would probably require scanning the filesystem and therefore be out of scope.

Thankfully, most the problems people run into with symlinks are generally related to moving the symlinks around, not the original files as much.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants