realpath returns NULL for broken symlinks

Erik Andersen andersen at codepoet.org
Thu Feb 8 18:40:21 PST 2007


On Thu Feb 08, 2007 at 08:06:40PM -0500, Mike Frysinger wrote:
> On Thursday 08 February 2007, Luciano Miguel Ferreira Rocha wrote:
> > <snip>
> > Is there any reference on the spec about the definitive meaning of
> > "component"?
> 
> 3.169 Filename
> A filename is sometimes referred to as a "pathname component".
> 
> but the only real way to find a definite answer is to ask on one of the 
> mailing lists that tracks the spec ... if only i could find one ...
> -mike

Not that it is definitive, considering the places where uClibc
and glibc diverge in our understanding of the standards, but from
a quick look over glibc's stdlib/canonicalize.c it looks like it
also returns a NULL when readlink fails.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://busybox.net/lists/uclibc/attachments/20070208/17d4a891/attachment.pgp 


More information about the uClibc mailing list