On Mon, Jan 12, 2009 at 3:34 AM, Martin Apel <span dir="ltr"><<a href="mailto:martin.apel@simpack.de" target="_blank">martin.apel@simpack.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>><br>
> This looks like a missing feature request and not a bug. I would<br>
> request an option be added to GET_FILENAME_COMPONENT that follows<br>
> symbolic links recursively back to their source (CANONICALIZE<br>
> perhaps?). In the meantime you can use the "readlink" program to do<br>
> this for you.<br>
</div></div>Hi Philip,<br>
<br>
to me it looks more like a bug, because the documentation for<br>
GET_FILENAME_COMPONENT states, that for ABSOLUTE the file name is<br>
returned without symlinks.<br>
Anyway at least under Unix I could use readlink, but then I will have to<br>
do platform-dependant stuff here, which I tried to avoid.</blockquote><div><br>For some reason, I drafted a reply to this message on January 13th and forgot to send it. I think I was going to confirm the bug at home and test it but somehow the email got buried by other emails until tonight.<br>
<br>Anyways, thanks for filing the bug report. I've confirmed the bug, traced down the issue and posted a patch.<br><a href="http://public.kitware.com/Bug/view.php?id=8423" target="_blank">http://public.kitware.com/Bug/view.php?id=8423</a><br>
<br><br>Also, on a tangential note I recently discovered that Microsoft Windows (Vista or higher) now supports symbolic links<br><a href="http://en.wikipedia.org/wiki/NTFS_symbolic_link">http://en.wikipedia.org/wiki/NTFS_symbolic_link</a><br>
<br>FILE(CREATE_SYMLINK ... ) feature request here we come!<br></div></div><br>-- <br>Philip Lowman<br>