Skip to content

Conversation

@cerdelen
Copy link
Contributor

@cerdelen cerdelen commented Jan 2, 2026

When checking for symlinks on unix trailing slashes need to be removed. Until no only 1 trailing slash was removed resulting in a different error message if the given argument included multiple trailing slashes.

Fixes: #9980

@cerdelen cerdelen force-pushed the rmdir_trailing_slashes branch from f8d06ec to 0caada3 Compare January 2, 2026 11:11
@cerdelen cerdelen force-pushed the rmdir_trailing_slashes branch from 0caada3 to 2b4b6df Compare January 2, 2026 11:14
@cerdelen cerdelen changed the title rmdir: Remove all trailing slashes when checking for symlinks rmdir: Remove all trailing slashes when checking for symlinks #9980 Jan 2, 2026
@cerdelen cerdelen changed the title rmdir: Remove all trailing slashes when checking for symlinks #9980 rmdir: Remove all trailing slashes when checking for symlinks Jan 2, 2026
@sylvestre
Copy link
Contributor

Could you please add a test to make sure we don't regress in the future?

@cerdelen cerdelen force-pushed the rmdir_trailing_slashes branch from 26ad0a8 to df6288f Compare January 2, 2026 13:43
@cakebaker cakebaker merged commit 0566dfc into uutils:main Jan 2, 2026
127 of 128 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.

rmdir: GNU incompatible handling of symlinks with multiple trailing slashes

3 participants