From: Steve Dickson <SteveD@redhat.com>
To: Natanael Copa <natanael.copa@gmail.com>, linux-nfs@vger.kernel.org
Cc: Natanael Copa <ncopa@alpinelinux.org>
Subject: Re: [PATCH v2 11/11] exportfs: only do glibc specific hackery on glibc
Date: Tue, 12 Aug 2014 07:03:54 -0400 [thread overview]
Message-ID: <53E9F49A.4070500@RedHat.com> (raw)
In-Reply-To: <1407306306-29796-12-git-send-email-ncopa@alpinelinux.org>
On 08/06/2014 02:25 AM, Natanael Copa wrote:
> We should not depend on the libc do free(3) on ai_canonname as that is
> completely up to implementation and known o break things on uclibc and
> musl libc.
>
> Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
> ---
> support/export/hostname.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/support/export/hostname.c b/support/export/hostname.c
> index d9153e1..30584b4 100644
> --- a/support/export/hostname.c
> +++ b/support/export/hostname.c
> @@ -382,6 +382,7 @@ host_numeric_addrinfo(const struct sockaddr *sap)
>
> ai = host_pton(buf);
>
> +#if !definded(__UCLIBC__) && defined(__GLIBC__)
^^^^^^^^
Are you kidding me???? How are you testing these patches?
I'm all for this port but I'm a bit concern about the
stability since things like this don't even compile...
steved.
> /*
> * getaddrinfo(AI_NUMERICHOST) never fills in ai_canonname
> */
> @@ -392,7 +393,9 @@ host_numeric_addrinfo(const struct sockaddr *sap)
> ai = NULL;
> }
> }
> +#endif
>
> return ai;
> }
> +
> #endif /* !HAVE_GETNAMEINFO */
>
next prev parent reply other threads:[~2014-08-12 11:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 6:24 [PATCH v2 00/11] Porting nfs-utils to musl libc Natanael Copa
2014-08-06 6:24 ` [PATCH v2 01/11] conffile: use standard uint*_t and unsigned char Natanael Copa
2014-08-06 6:24 ` [PATCH v2 02/11] Fix header include for definition of NULL Natanael Copa
2014-08-06 6:24 ` [PATCH v2 03/11] configure.ac: enable GNU_SOURCE for stat64/statfs64 Natanael Copa
2014-08-06 6:24 ` [PATCH v2 04/11] replace __attribute_malloc__ with the more portable __attribute__((__malloc__)) Natanael Copa
2014-08-06 6:25 ` [PATCH v2 05/11] mountd: use standard dev_t instead of glibc internals Natanael Copa
2014-08-06 6:25 ` [PATCH v2 06/11] nfsstat: replace the legacy SA_ONESHOT with standard SA_RESETHAND Natanael Copa
2014-08-06 6:25 ` [PATCH v2 07/11] Allow usage of getrpcbynumber() when getrpcbynumber_r() is unavailable Natanael Copa
2014-08-06 6:25 ` [PATCH v2 08/11] Only work around glibc bugs on glibc Natanael Copa
2014-08-06 6:25 ` [PATCH v2 09/11] include libgen.h for basename Natanael Copa
2014-08-06 6:25 ` [PATCH v2 10/11] exportfs: fix test of NULL pointer in host_pton() Natanael Copa
2014-08-06 6:25 ` [PATCH v2 11/11] exportfs: only do glibc specific hackery on glibc Natanael Copa
2014-08-12 11:03 ` Steve Dickson [this message]
2014-08-13 9:04 ` Natanael Copa
2014-09-16 13:30 ` [PATCH v2 00/11] Porting nfs-utils to musl libc Steve Dickson
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=53E9F49A.4070500@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=natanael.copa@gmail.com \
--cc=ncopa@alpinelinux.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 NNTP newsgroup(s).