From 331c2c71c97b8923f186f6661c6e03572fb34063 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 26 Oct 2025 09:00:09 +0200 Subject: [PATCH] c_rehash: Strip \r from hash filename on msys2 Sample output for c_rehash -v on ucrt64 env: Doing . .0nk my.pem -> 472bcb3c .0nk ca-bundle.crt -> cd8c0d63 WARNING: Skipping duplicate certificate ca-bundle.trust.crt Reviewed-by: Dmitry Belyavskiy Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/28996) --- tools/c_rehash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/c_rehash.in b/tools/c_rehash.in index 9f33895a4fd..bb68c44692b 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in @@ -192,6 +192,7 @@ sub compute_hash { print STDERR "Cannot compute hash on '$fname'\n"; return; } + binmode($fh, ":crlf"); } return (<$fh>, <$fh>); } -- 2.47.3