From caa7755dab1af29a971057855ba4ff8e81388991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veronika=20Hanul=C3=ADkov=C3=A1?= Date: Tue, 30 Jul 2024 10:22:07 +0200 Subject: [PATCH] Preserve special characters in cracklib-format Resolves: RHEL-39972 --- cracklib-2.9.11-simplistic.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cracklib-2.9.11-simplistic.patch b/cracklib-2.9.11-simplistic.patch index f1df715..079289d 100644 --- a/cracklib-2.9.11-simplistic.patch +++ b/cracklib-2.9.11-simplistic.patch @@ -93,8 +93,8 @@ diff -Naur cracklib-2.9.11-orig/lib/fascist.c cracklib-2.9.11/lib/fascist.c printf("%-16s (reversed dict)\n", a); #endif diff -Naur cracklib-2.9.11-orig/util/cracklib-format cracklib-2.9.11/util/cracklib-format ---- cracklib-2.9.11-orig/util/cracklib-format 2021-01-22 10:58:14.000000000 -0500 -+++ cracklib-2.9.11/util/cracklib-format 2023-07-07 21:19:14.854048317 -0400 +--- cracklib-2.9.11-orig/util/cracklib-format 2024-07-30 10:14:59.364641602 +0200 ++++ cracklib-2.9.11/util/cracklib-format 2024-07-30 10:15:34.208982313 +0200 @@ -10,10 +10,12 @@ # lines (possibly introduced by earlier parts of the pipeline) as # cracklib-packer will generate "skipping line" warnings otherwise. @@ -104,7 +104,8 @@ diff -Naur cracklib-2.9.11-orig/util/cracklib-format cracklib-2.9.11/util/crackl gzip -cdf "$@" | grep -a -v '^#' | tr '[A-Z]' '[a-z]' | - tr -cd '\012[a-z][0-9]' | +- tr -cd '\012[a-z][0-9]' | ++ tr -cd '\n[:graph:]' | cut -c 1-1022 | grep -v '^$' | - env LC_ALL=C sort -u