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

hashsum: use file_stem() instead of file_name() #5020

Merged
merged 1 commit into from
Jun 29, 2023

Commits on Jun 29, 2023

  1. hashsum: use file_stem() instead of file_name()

    This program matches the binary name to determine which
    algorithm to use. On Windows, `file_name()` was matching
    against a string with `.exe`, causing binaries like
    `sha256sum.exe` to not properly detect the algorithm.
    
    By using `file_stem()`, we exclude the `.exe` from matching,
    achieving similar and correct behavior on Windows.
    indygreg authored and sylvestre committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    a7f95d5 View commit details
    Browse the repository at this point in the history