Boost logo

Boost-Build :

Subject: Re: [Boost-build] CHECK_IF_FILE fails on Windows if first character in file name is /
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-10-06 11:25:15


On Wednesday, October 06, 2010 19:01:04 Jim Gallagher wrote:
> Hi,
>
> I do not understand all the details, but it seems that on Windows,
> absolute paths get prepended with a /. The CHECK_IF_FILE built-in
> fails if this leading / is present. I assume that the / is still
> present when stat is called in file_query().
>
> An easy fix would be to check if the path is absolute and move
> filename pointer over one character, but I don't know enough about the
> internals to know if this is the best fix.

How can I reproduce this? CHECK_IF_FILE is supposed to be given a native path,
so it seems like it's not happening somehow.

- Volodya


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