Skip to content

Conversation

@mattsu2020
Copy link
Contributor

We will make corrections to readlink because its handling of symbolic links differs from GNU behavior.

related
#9057

…h GNU behavior

Changed ResolveMode from Logical to Physical for -f, -e, and -m flags in readlink to ensure symlinks are followed before resolving '..' (parent directory), matching GNU readlink's physical resolution order for compatibility. Added a test case to verify the symlink resolution occurs before parent directory evaluation.
Add 'parentdir' to the ignored words to suppress spell-checker warnings, as it's used in test scenarios and not a misspelled term.
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker linked an issue Dec 11, 2025 that may be closed by this pull request
@cakebaker cakebaker merged commit 4a1b969 into uutils:main Dec 11, 2025
127 checks passed
@cakebaker
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

readlink: traverse symlinks before resolving ..

2 participants