readlink -f still segfaults

Natanael Copa natanael.copa at gmail.com
Fri May 5 10:29:26 UTC 2006


On Fri, 2006-05-05 at 11:29 +0200, Natanael Copa wrote:
> I discovered my hotplug scripts fails caused by readlink segfaulting. I
> googled and found that it has been seen before:
> 
> http://www.busybox.net/lists/busybox/2006-January/017795.html
> 
> Looks like it never got a conclusion.

The problem is the realpath(...., NULL) gnu extension mentioned here:
http://www.busybox.net/lists/busybox/2006-January/017777.html

The attached patch fixes the problem by calling xmalloc instead of
relying on realpath to do it.

Please commit (also to busybox_1_1_stable)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: malloc_realpath.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060505/01e57d7d/attachment.bin 


More information about the busybox mailing list