Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly invalid regex in "sorter" utility for [dir-meta-addr] #2895

Open
dolamroth opened this issue Feb 15, 2024 · 0 comments
Open

Possibly invalid regex in "sorter" utility for [dir-meta-addr] #2895

dolamroth opened this issue Feb 15, 2024 · 0 comments

Comments

@dolamroth
Copy link

dolamroth commented Feb 15, 2024

sorter man does not explicitly say this, but the code implies, that its last argument [dir-meta-addr] should accept INODE, which usually includes both digits and hyphens. However, regexp for [dir-meta-addr] accepts only digits.

if ($tmpimg =~ /^\d+$/) {

Suggestion: change /^\d+$/ to /^(\d|\-)+$/

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

No branches or pull requests

1 participant