Skip to content

Conversation

@dynamic-entropy
Copy link
Collaborator

The current check fails checks for directories ending with a trailing slash

For e.g.

subdir = /data/subdir/mydir
dir = /data/subdir/

The current code only takes into account paths without a trailing slash: subdir[dir.size()]
This PR adds checks for paths with a trailing slash: dir[dir.size()-1]
The actual code uses string member functions instead of the array indexing shown above.

@amadio amadio added this to the 5.9.1 milestone Nov 12, 2025
@amadio amadio merged commit 4e9a1ca into xrootd:master Nov 12, 2025
12 checks passed
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.

2 participants