[Toybox] XBSPATH() bug

Rob Landley rob at landley.net
Mon Apr 29 10:30:38 PDT 2013


On 04/28/2013 11:22:07 PM, Ashwini Sharma wrote:
> Yep! I had a case that file belongs to some other user.... /dev/sda1  
> on my
> system.

Ooh, good test.

> may be doing FACCESSAT would be better.
> 
> -Ashwini

I actually worked out that I could use the earlier readlinkat() return  
value to determine something existed but was not a symlink (returns  
EINVAL) and then detect this case there without needing an extra system  
call.

Fixed. Thanks for the bug report,

Rob


More information about the Toybox mailing list