[gmail] Re: realpath bug

Mike Frysinger vapier at gentoo.org
Sat Feb 10 20:55:08 PST 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://busybox.net/lists/busybox/attachments/20070210/7ab61e8c/attachment.pgp 


More information about the busybox mailing list