public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: DJ Delorie <dj@redhat.com>
To: Joseph Myers <joseph@codesourcery.com>
Cc: carlos@redhat.com, fweimer@redhat.com, libc-alpha@sourceware.org
Subject: Re: [v2] nsswitch: do not reload if "/" changes
Date: Wed, 27 Jan 2021 20:15:42 -0500	[thread overview]
Message-ID: <xnim7hhnep.fsf@greed.delorie.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2101280038500.18505@digraph.polyomino.org.uk> (message from Joseph Myers on Thu, 28 Jan 2021 00:39:24 +0000)

Joseph Myers <joseph@codesourcery.com> writes:
> Hurd does not have a limit on path length, but some tests do e.g.
>
> #ifndef PATH_MAX
> # define PATH_MAX 4096
> #endif

Ah.  I committed this as obvious, which was copied from one of the other
tests (my test doesn't need that much buffer space anyway)

From 757a14b5ac7c736c759605f4b674cae28d752116 Mon Sep 17 00:00:00 2001
From: DJ Delorie <dj@redhat.com>
Date: Wed, 27 Jan 2021 20:05:26 -0500
Subject: Fix nss/tst-reload2 for systems without PATH_MAX


diff --git a/nss/tst-reload2.c b/nss/tst-reload2.c
index 128db25ae6..5dae16b4f0 100644
--- a/nss/tst-reload2.c
+++ b/nss/tst-reload2.c
@@ -33,6 +33,10 @@
 
 #include "nss_test.h"
 
+#ifndef PATH_MAX
+# define PATH_MAX 1024
+#endif
+
 static struct passwd pwd_table1[] =
   {
    PWD_N (1234, "test1"),


  reply	other threads:[~2021-01-28  1:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-16  0:59 DJ Delorie
2021-01-16 10:52 ` Florian Weimer
2021-01-18  1:13   ` DJ Delorie
2021-01-18 10:47     ` Florian Weimer
2021-01-18 18:20       ` DJ Delorie
2021-01-19 16:37         ` Florian Weimer
2021-01-22 19:10           ` [v2] " DJ Delorie
2021-01-26  9:58             ` Florian Weimer
2021-01-26 16:19               ` DJ Delorie
2021-01-26 16:30                 ` Florian Weimer
2021-01-26 16:47                   ` DJ Delorie
2021-01-27 17:28                     ` Carlos O'Donell
2021-01-27 18:44                       ` DJ Delorie
2021-01-28  0:31                         ` Joseph Myers
2021-01-28  0:34                           ` DJ Delorie
2021-01-28  0:39                             ` Joseph Myers
2021-01-28  1:15                               ` DJ Delorie [this message]
2021-01-18 12:42 ` Andreas Schwab
2021-01-18 12:53   ` Florian Weimer
2021-01-18 18:27   ` DJ Delorie
2021-01-18 15:59 ` Carlos O'Donell
2021-01-18 16:53   ` Florian Weimer
2021-01-19 14:30     ` Carlos O'Donell
2021-01-19 14:40       ` Florian Weimer
2021-01-18 18:35   ` DJ Delorie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xnim7hhnep.fsf@greed.delorie.com \
    --to=dj@redhat.com \
    --cc=carlos@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).