[gmail] Re: realpath bug

Mike Frysinger vapier at gentoo.org
Sun Feb 11 04:55:08 UTC 2007


On Saturday 10 February 2007, Denis Vlasenko wrote:
> it happens so on glibc realpath() returns resolved link and
> uclibc returns NULL but fills lfile with resolved link.

no ... glibc and uClibc both return NULL for broken symlinks

> Patch which replaces realpath with readlink, anyone?

this wont be terribly robust as what if /dev/ is readonly and /dev/log is a 
relative symlink ... you'd have to make sure you chroot(/dev/) first
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070210/7ab61e8c/attachment-0002.pgp 


More information about the busybox mailing list