← Commit list

a3c506830

Ron Yorston
Ron Yorston
2024-07-11
SUCCESS Duration: 155s

Subject

md5/shaXsum: accept uppercase hex strings

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/md5_sha1_sum.c+1 -1
@@ -320,7 +320,7 @@ int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv)
hash_value = hash_file(in_buf, filename_ptr, sha3_width);
- if (hash_value && (strcmp((char*)hash_value, line) == 0)) {
+ if (hash_value && (strcasecmp((char*)hash_value, line) == 0)) {
if (!(flags & FLAG_SILENT))
printf("%s: OK\n", filename_ptr);
} else {