From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 7 11:17:52 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBC951065675; Thu, 7 Jul 2011 11:17:52 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 5EB2F8FC1C; Thu, 7 Jul 2011 11:17:52 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id C267A2A28D03; Thu, 7 Jul 2011 13:17:51 +0200 (CEST) Date: Thu, 7 Jul 2011 13:17:51 +0200 From: Ed Schouten To: Robert Millan Message-ID: <20110707111751.GI71453@hoeg.nl> References: <20110707100123.GF71453@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="29v4wwwYFo25Y52C" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org, Ed Maste , debian-hurd@lists.debian.org Subject: Re: [PATCH] avoid assuming MAXPATHLEN in config(8) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 11:17:53 -0000 --29v4wwwYFo25Y52C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Millan , 20110707 13:12: > As for the __GLIBC__ bit, it is difficult to handle this without a > function that canonicalizes arbitrary-length pathnames. Would you > prefer something like: >=20 > #ifdef MAXPATHLEN > // use realpath on a statically-allocated buffer > #else > // assume canonicalize_file_name() is present > #endif Considering that the function is rather small anyway, why not compile it in unconditionally (though having a different name). --=20 Ed Schouten WWW: http://80386.nl/ --29v4wwwYFo25Y52C Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBAgAGBQJOFZXfAAoJEG5e2P40kaK75mQP/jddpVSo6+s/qW5IsvdAOGJ3 UBiGaXyxJ6pq9M7XfHeHFNfsiI3BIdVdb3Q2acRbLWerxqXUUBbxc06bEmRgFrDJ EjDxh8epcRpVMtSrztG8ILf5pcxGoyS1+d894PApZe0iujCidZEiSnSuBzfBvxg1 xCtHXz1QH56pVYBUvtR7x65GwLYUbJOA1kXkOsV6svoeMVfM2ShfB6FRoxDZtj93 4kaWw4MaDxSwEWjq99/d2GqXIe8qaCm4CTSuXEE8I1gOOpiwgiWTyIToXZhBQ43R 4/DkxAVFB9wc1BXD/qKSjsMp5SVIqKk1u9RFOhr463yWLUQaHAsWWKqmnv7a1rMa l4d0Ibk4qD6x9fpIV30+oEDdJdWUnI5uDxI2nf4PZaCj0l3b2tfptqBoa2C/yOeH s3uBuovo8MSK++MD6bIF3xbnc8p3uheIb90UugbVCSxXXL5mSwWeAlVWw7e1sS6a mKJTuHPhuMoGpoZdNGeJ5vNmAovA+UyfVIR/k+WnhQl1GIMUXW/tZWuwGPJ/0T5g WcWNMXSX3wB2b7ugij8OiyaFG38SV22HiMdE4sNG8A5WTxXEVgDMXW4sThCjcvYg V8+5ZxMY0m68YubMHFd9Rxs8OjcppJdiR4PsUqEA9KTywCRWQVcBe+IdqAErkR/7 jXjS7WoiPlxabydrxLsh =FUEQ -----END PGP SIGNATURE----- --29v4wwwYFo25Y52C--