From f2c5e44a07a3e1f4682775231636e407e02de5a7 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 12 Sep 2011 16:36:46 -0400 Subject: [PATCH] - update the validnames changes to the self-tests so that their expectations match the modified defaults (#737496) --- nss-pam-ldapd-0.7.13-validname.patch | 10 +++++++++- nss-pam-ldapd.spec | 9 ++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/nss-pam-ldapd-0.7.13-validname.patch b/nss-pam-ldapd-0.7.13-validname.patch index 1ccae69..4b39ab9 100644 --- a/nss-pam-ldapd-0.7.13-validname.patch +++ b/nss-pam-ldapd-0.7.13-validname.patch @@ -30,7 +30,15 @@ Index: tests/test_common.c static void test_isvalidname(void) { -@@ -41,6 +46,8 @@ +@@ -44,12 +43,15 @@ static void test_isvalidname(void) + assert(isvalidname("sambamachine$")); + assert(isvalidname("foo\\bar")); + assert(!isvalidname("\\foo\\bar")); +- assert(!isvalidname("foo\\bar\\")); ++ assert(isvalidname("foo\\bar")); ++ assert(isvalidname("foo\\bar\\")); + } + /* the main program... */ int main(int UNUSED(argc),char UNUSED(*argv[])) { diff --git a/nss-pam-ldapd.spec b/nss-pam-ldapd.spec index f62d4da..94f359a 100644 --- a/nss-pam-ldapd.spec +++ b/nss-pam-ldapd.spec @@ -14,7 +14,7 @@ Name: nss-pam-ldapd Version: 0.7.13 -Release: 8%{?dist} +Release: 9%{?dist} Summary: An nsswitch module which uses directory servers Group: System Environment/Base License: LGPLv2+ @@ -68,6 +68,9 @@ autoreconf -f -i %configure --libdir=/%{_lib} --disable-pam make %{?_smp_mflags} +%check +make check + %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT @@ -258,6 +261,10 @@ exit 0 %endif %changelog +* Mon Sep 12 2011 Nalin Dahyabhai 0.7.13-9 +- update the validnames changes to the self-tests so that their expectations + match the modified defaults (#737496) + * Wed Aug 24 2011 Nalin Dahyabhai 0.7.13-8 - include backported enhancement to take URIs in the form "dns:DOMAIN" in addition to the already-implemented "dns" (#730309)