Skip to content

rmdir: Remove all trailing slashes when checking for symlinks - #9983

Merged
cakebaker merged 4 commits into
uutils:mainfrom
cerdelen:rmdir_trailing_slashes
Jan 2, 2026
Merged

cakebaker merged 4 commits into
uutils:mainfrom
cerdelen:rmdir_trailing_slashes

Conversation

@cerdelen

@cerdelen cerdelen commented Jan 2, 2026 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

Comment thread src/uu/rmdir/src/rmdir.rs Resolved
@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
@cakebaker

Copy link
Copy Markdown
Contributor

Thanks!

@cerdelen
cerdelen deleted the rmdir_trailing_slashes branch January 24, 2026 13:24
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