Minor upstream release.

- fix problem with parsing the pam_pwquality options
  patch by Vladimir Sorokin.
- updated translations from Transifex
- treat empty user or password as NULL
- move the library to /usr
This commit is contained in:
Tomas Mraz 2013-09-12 13:27:32 +02:00
parent 711ed4b2cf
commit c50b07f1e5
4 changed files with 10 additions and 29 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@
/libpwquality-1.2.0.tar.bz2
/libpwquality-1.2.1.tar.bz2
/libpwquality-1.2.2.tar.bz2
/libpwquality-1.2.3.tar.bz2

View File

@ -1,16 +0,0 @@
diff -r e8035cfc9647 src/check.c
--- a/src/check.c Wed Jun 19 17:41:41 2013 +0200
+++ b/src/check.c Mon Jul 08 14:46:04 2013 +0200
@@ -654,6 +654,12 @@
return PWQ_ERROR_EMPTY_PASSWORD;
}
+ if (user && *user == '\0')
+ user = NULL;
+
+ if (oldpassword && *oldpassword == '\0')
+ oldpassword = NULL;
+
if (oldpassword && strcmp(oldpassword, password) == 0) {
return PWQ_ERROR_SAME_PASSWORD;
}

View File

@ -1,13 +1,12 @@
Summary: A library for password generation and password quality checking
Name: libpwquality
Version: 1.2.2
Release: 4%{?dist}
Version: 1.2.3
Release: 1%{?dist}
# The package is BSD licensed with option to relicense as GPLv2+
# - this option is redundant as the BSD license allows that anyway.
License: BSD or GPLv2+
Group: System Environment/Base
Source0: http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-%{version}.tar.bz2
Patch1: libpwquality-1.2.2-empty-user.patch
%global _pwqlibdir %{_libdir}
%global _moduledir %{_libdir}/security
@ -55,7 +54,6 @@ pronounceable passwords from Python applications.
%prep
%setup -q
%patch1 -p1 -b .empty-user
%build
%configure \
@ -109,14 +107,12 @@ rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la
%{python_sitearch}/pwquality.so
%changelog
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Jul 11 2013 Tomas Mraz <tmraz@redhat.com> 1.2.2-3
- move library and pam module to /usr
* Mon Jul 8 2013 Tomas Mraz <tmraz@redhat.com> 1.2.2-2
- treat empty user or old password as NULL
* Thu Sep 12 2013 Tomáš Mráz <tmraz@redhat.com> 1.2.3-1
- fix problem with parsing the pam_pwquality options
patch by Vladimir Sorokin.
- updated translations from Transifex
- treat empty user or password as NULL
- move the library to /usr
* Wed Jun 19 2013 Tomas Mraz <tmraz@redhat.com> 1.2.2-1
- manual page fixes

View File

@ -1 +1 @@
2105bb893791fe27efc20441e617f385 libpwquality-1.2.2.tar.bz2
a8d4cf5d40a1c301f965432e6f3b821b libpwquality-1.2.3.tar.bz2