do not remove any printable characters in cracklib-format

fix the broken zh_CN translation
This commit is contained in:
Tomas Mraz 2013-10-31 17:03:44 +01:00
parent d8d736852f
commit 3c36ea8ab5
2 changed files with 26 additions and 3 deletions

View File

@ -1,6 +1,6 @@
diff -up cracklib-2.9.0/lib/fascist.c.simplistic cracklib-2.9.0/lib/fascist.c
--- cracklib-2.9.0/lib/fascist.c.simplistic 2013-09-03 07:45:55.369653537 +0200
+++ cracklib-2.9.0/lib/fascist.c 2013-09-03 07:48:58.686759120 +0200
--- cracklib-2.9.0/lib/fascist.c.simplistic 2013-10-31 14:46:23.160959124 +0100
+++ cracklib-2.9.0/lib/fascist.c 2013-10-31 14:46:23.164959212 +0100
@@ -55,7 +55,6 @@ static char *r_destructors[] = {
"/?p@?p", /* purging out punctuation/symbols/junk */
@ -92,3 +92,19 @@ diff -up cracklib-2.9.0/lib/fascist.c.simplistic cracklib-2.9.0/lib/fascist.c
#ifdef DEBUG
printf("%-16s (reversed dict)\n", a);
#endif
diff -up cracklib-2.9.0/util/cracklib-format.simplistic cracklib-2.9.0/util/cracklib-format
--- cracklib-2.9.0/util/cracklib-format.simplistic 2013-06-01 16:47:13.000000000 +0200
+++ cracklib-2.9.0/util/cracklib-format 2013-10-31 15:24:01.976736045 +0100
@@ -3,8 +3,10 @@
# This preprocesses a set of word lists into a suitable form for input
# into cracklib-packer
#
+LC_ALL=C
+export LC_ALL
gzip -cdf "$@" |
grep -v '^\(#\|$\)' |
- tr '[A-Z]' '[a-z]' |
- tr -cd '\012[a-z][0-9]' |
+ tr '[:upper:]' '[:lower:]' |
+ tr -cd '\n[:graph:]' |
sort -u

View File

@ -5,7 +5,7 @@
Summary: A password-checking library
Name: cracklib
Version: 2.9.0
Release: 5%{?dist}
Release: 7%{?dist}
Group: System Environment/Libraries
Source0: http://prdownloads.sourceforge.net/cracklib/cracklib-%{version}.tar.gz
@ -148,6 +148,7 @@ chmod +x util/cracklib-format
%build
%configure --with-pic --with-python --with-default-dict=%{dictpath} --disable-static
make -C po zh_CN.gmo
make
%install
@ -258,6 +259,12 @@ EOF
%{_libdir}/../lib/python*/site-packages/*.py*
%changelog
* Thu Oct 31 2013 Tomáš Mráz <tmraz@redhat.com> - 2.9.0-7
- do not remove any printable characters in cracklib-format
* Thu Oct 31 2013 Tomáš Mráz <tmraz@redhat.com> - 2.9.0-6
- fix the broken zh_CN translation
* Tue Sep 3 2013 Tomáš Mráz <tmraz@redhat.com> - 2.9.0-5
- make the simplistic check and the purging of special characters much
less aggressive (#1003624, #985378)