[24447] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Unable to build 1.4.2 on FreeBSD

daemon@ATHENA.MIT.EDU (Tom Yu)
Thu Aug 11 15:13:19 2005

To: Dennis Davis <D.H.Davis@bath.ac.uk>
From: Tom Yu <tlyu@mit.edu>
Date: Thu, 11 Aug 2005 15:12:25 -0400
In-Reply-To: <Pine.GSO.4.63.0508111203210.18614@hinault.bath.ac.uk> (Dennis
 Davis's message of "Thu, 11 Aug 2005 12:10:22 +0100 (BST)")
Message-ID: <ldvirycl23q.fsf@cathode-dark-space.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Vladimir Terziev <vladimir.terziev@sun-fish.com>
cc: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu

>>>>> "Dennis" == Dennis Davis <D.H.Davis@bath.ac.uk> writes:

Dennis> However I'm not sure that things are as simple as getpwuid_r being
Dennis> (quite rightly) undefined.  At first glance the code in krb5-1.4.2
Dennis> doesn't look much different to the code in krb5-1.4.1.  And I didn't
Dennis> see this problem with krb5-1.4.1.

In krb5-1.4.2, a wrapper was made for getpwuid_r and used
unconditionally, hence the exposure of the BUFSIZ problem.  Prior to
krb5-1.4.2, import_name.c only used BUFSIZ if getpwuid_r was detected
at configure time.  I suppose platforms which provided getpwuid_r but
didn't declare BUFSIZ in the headers which were already included would
have failed compilation in earlier releases as well.  The lack of
BUFSIZ due to not including stdio.h was a problem that didn't come up
in our testing, but it will be fixed in a future release.

---Tom
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post