Preserve special characters in cracklib-format

Resolves: RHEL-39972
This commit is contained in:
Veronika Hanulíková 2024-07-30 10:22:07 +02:00
parent c83be7b811
commit caa7755dab

View File

@ -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