On 8/31/21 11:33 AM, Erich E. Hoover wrote:
On Tue, Aug 31, 2021 at 10:29 AM Zebediah Figura (she/her) zfigura@codeweavers.com wrote:
... Wait, but by the time we do path resolution, aren't we guaranteed to have an absolute path that's free of . or ..? I thought that RtlDosPathNameToNtPathName() got rid of all of those for us.
Yes, that's part of the problem - if you resolve the path to the absolute location then ".." brings you to the parent of the symlink target.
Is there a problem with collapse_path(), or is it just a matter of asking for the parent of the current directory? If the latter, wouldn't it just be a matter of storing the unresolved path in the TEB?