Boost logo

Boost-Build :

Subject: Re: [Boost-build] build engine crashes when GLOBing paths with forward slashes on windows
From: Marc Dürner (marc.duerner_at_[hidden])
Date: 2012-02-23 10:40:42


Hi,

> On 02/23/2012 03:21 AM, Marc Dürner wrote:
>> However the code still looks a bit strange. there is a tricky
>> recursion. Please review if the following can still happen:
>>
>
> This can't happen because ShortPathToLongPath
> strips off the last path element before calling
> path_write_key.  The result is that given the
> path: "C:\Users\Steven\Documents"
>
> We end up calling
>
> ShortPathToLongPath("C:\Users\Steven\Documents")
>  -> path_write_key("C:\Users\Steven")
>   -> ShortPathToLongPath("C:\Users\Steven")
>     -> path_write_key("C:\Users")
>       -> ShortPathToLongPath("C:\Users")
>         -> path_write_key("C:\")
>           -> ShortPathToLongPath("C:\") - base case
>

OK, great. This was just to double check :-)

In my case, the path /usr/include was stripped like this:

/usr/include
/usr
/
/ -> boom

But this works now too with the current version from trunk, so thank you!

regards,
Marc


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk