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

Intermediate symlink resolving in realpath #3669

Closed
niyaznigmatullin opened this issue Jun 24, 2022 · 1 comment
Closed

Intermediate symlink resolving in realpath #3669

niyaznigmatullin opened this issue Jun 24, 2022 · 1 comment

Comments

@niyaznigmatullin
Copy link
Contributor

Currently seems that uutils doesn't resolve symlinks that is hidden as a path inside another symlink

$ mkdir dir1
$ mkdir dir1/dir2
$ touch dir1/dir2/file1
$ ln -s dir1 link1
$ ln -s link1/dir2 link2
$ realpath link2/file1
/tmp/example/dir1/dir2/file1
$ ~/repositories/uutils/target/debug/realpath link2/file1
/tmp/example/link1/dir2/file1

As well as other utilities that use canonicalize function don't check for existence of each part of the paths inside symlinks.

@niyaznigmatullin
Copy link
Contributor Author

PR #3703 closes the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant