bin/60079: realpath(3) accepts zero size symbolic links
Garrett Wollman
wollman at khavrinen.lcs.mit.edu
Wed Dec 10 13:00:17 PST 2003
The following reply was made to PR bin/60079; it has been noted by GNATS.
From: Garrett Wollman <wollman at khavrinen.lcs.mit.edu>
To: dada at sbox.tugraz.at
Cc: freebsd-gnats-submit at freebsd.org
Subject: bin/60079: realpath(3) accepts zero size symbolic links
Date: Wed, 10 Dec 2003 15:57:12 -0500 (EST)
<<On Tue, 9 Dec 2003 15:54:20 +0100, dada at sbox.tugraz.at said:
> The libc realpath(3) routine accepts zero size symbolic links
> without returning any error indication. Since namei(9) will
> never accept such a path this behaviour is misleading and
> could confuse applications.
If namei(9) doesn't accept such a path it is broken. POSIX clearly
(well, actually, murkily but definitively) specifies the (very
unintuitive) meaning of such a symbolic link.
-GAWollman
More information about the freebsd-bugs
mailing list