Fix nss/nss_test1.c compile with latest GCC

Message ID xnbmodtlvx.fsf@greed.delorie.com
State Committed
Headers

Commit Message

DJ Delorie July 21, 2017, 11:23 p.m. UTC
  I think the right solution is to fix test5.  I suspect that leaving in
"bad" default data is a good test for a properly configured test,a and
we might want to add some "bad" default group data as well.
  

Comments

H.J. Lu July 21, 2017, 11:35 p.m. UTC | #1
On Fri, Jul 21, 2017 at 4:23 PM, DJ Delorie <dj@redhat.com> wrote:
>
> I think the right solution is to fix test5.  I suspect that leaving in
> "bad" default data is a good test for a properly configured test,a and
> we might want to add some "bad" default group data as well.
>
> diff --git a/nss/tst-nss-test5.c b/nss/tst-nss-test5.c
> index b70f21e..fef41f0 100644
> --- a/nss/tst-nss-test5.c
> +++ b/nss/tst-nss-test5.c
> @@ -65,7 +65,7 @@ do_test (void)
>    int i;
>    struct passwd *p;
>
> -  __nss_configure_lookup ("passwd", "test1 test2");
> +  __nss_configure_lookup ("passwd", "test1");
>
>    setpwent ();
>

Works for me.  Can you check it in?

Thanks.
  

Patch

diff --git a/nss/tst-nss-test5.c b/nss/tst-nss-test5.c
index b70f21e..fef41f0 100644
--- a/nss/tst-nss-test5.c
+++ b/nss/tst-nss-test5.c
@@ -65,7 +65,7 @@  do_test (void)
   int i;
   struct passwd *p;
 
-  __nss_configure_lookup ("passwd", "test1 test2");
+  __nss_configure_lookup ("passwd", "test1");
 
   setpwent ();