Date: Thu, 7 Jul 2011 13:17:51 +0200 From: Ed Schouten <ed@80386.nl> To: Robert Millan <rmh@debian.org> Cc: freebsd-hackers@freebsd.org, Ed Maste <emaste@freebsd.org>, debian-hurd@lists.debian.org Subject: Re: [PATCH] avoid assuming MAXPATHLEN in config(8) Message-ID: <20110707111751.GI71453@hoeg.nl> In-Reply-To: <CAOfDtXN0RkYaWKidXjwJd3UP9LNmW0BdFqH5boMUA_W19%2BsUiQ@mail.gmail.com> References: <CAOfDtXNreaFYKvyR_C15dk9mOqU30_Z4gHxQPkPH5ntY7rRtzA@mail.gmail.com> <20110707100123.GF71453@hoeg.nl> <CAOfDtXN0RkYaWKidXjwJd3UP9LNmW0BdFqH5boMUA_W19%2BsUiQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--29v4wwwYFo25Y52C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Millan <rmh@debian.org>, 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 <ed@80386.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110707111751.GI71453>