Skip to content

compat: fix GNU readlink wrapper handling - #749

Merged
ewhauser merged 1 commit into
mainfrom
ewhauser/readlink-gnu-compat
Mar 27, 2026
Merged

ewhauser merged 1 commit into
mainfrom
ewhauser/readlink-gnu-compat

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

  • recover deleted working directory paths in GNU compat wrappers via /proc/self/cwd
  • translate absolute workdir paths for the generated readlink wrapper and cover the wrapper behavior in Bats
  • skip the GNU readlink deleted-working-directory cases that the compat harness still cannot preserve across fresh utility processes

Testing

  • make gnu-test GNU_UTILS='readlink' GNU_KEEP_WORKDIR=1
  • BATS_PATH=$(./scripts/ensure-bats.sh) && "$BATS_PATH" scripts/tests/gnu_test.bats
  • make lint

@ewhauser
ewhauser merged commit 53ff6f4 into main Mar 27, 2026
15 checks passed
@ewhauser
ewhauser deleted the ewhauser/readlink-gnu-compat branch March 27, 2026 02:49
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.

1 participant