Subject: Re: lib/30943: realpath() behaviour changed with nonexistant relative path
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-bugs
Date: 08/14/2005 08:29:02
The following reply was made to PR lib/30943; it has been noted by GNATS.
From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/30943: realpath() behaviour changed with nonexistant relative path
Date: Sun, 14 Aug 2005 10:28:11 +0200
--T6xhMxlHU34Bk0ad
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Aug 13, 2005 at 02:56:05PM +0000, Elad Efrat wrote:
> The following reply was made to PR lib/30943; it has been noted by GNATS.
>=20
> From: Elad Efrat <elad@NetBSD.org>
> To: Mark Davies <mark@mcs.vuw.ac.nz>
> Cc: gnats-bugs@netbsd.org
> Subject: Re: lib/30943: realpath() behaviour changed with nonexistant rel=
ative
> path
> Date: Sat, 13 Aug 2005 17:46:31 +0300
>=20
> Mark Davies wrote:
> =20
> > So the minimal fix would be to restore the traditional *BSD behavior w=
hich the=20
> > following patch would do:
> =20
> Since the standard says nothing about allowing last element to be
> non-existant, let's adopt martin@'s suggestion and dump the traditional
> behavior. I'll commit my ``revision 1.39'' with your man-page update.
It *does* say something about last element. As a matter of fact, there
is no distinction made between the last one and any other.
The realpath() function shall fail if:
[ENOENT]
A component of file_name does not name an existing file or file_name
points to an empty string.
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--T6xhMxlHU34Bk0ad
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQv8Am9goQloHrPnoAQIyqggAs3YLqvRHw/km6SdhvGz4Mreo+nBxRkhy
GQWQrw38iVyCR5wGaitfCLhZ0ijr4u3ikCV8eyBel/V4yRmLIY9RfKbe1L0jyrBx
6bHebTgjqlqSJvSYsgFe7jQt9BcLued7bNXZ410b7RODro8LmSpSt0lWEkranhDO
lQ7NpCtlTZ2FeULHnr35EkbD9uRODyrBeT3B5i8p0h8AO/xzn1AO10nJV+EeCFvD
sXsp5DpR7ywVUUjmx6Izdru5yRPD0xDpTEP37pqFhGKvPckf0guEH4nXxdauEgqs
Gmusb1kd8ppRIne7oMVlYWJPx9oNfp4loyDxl5/tLGAIxdhWyoskwA==
=CPd9
-----END PGP SIGNATURE-----
--T6xhMxlHU34Bk0ad--