From: Johannes Sixt Date: Thu, 08 Dec 2016 11:32:46 GMT Subject: Re: [PATCH] real_path: make real_path thread-safe Message-ID: <1767f01a-4125-d99b-37db-3f4a56aaa28a@kdbg.org> In-Reply-To: <20161207222927.GB116201@google.com> Am 07.12.2016 um 23:29 schrieb Brandon Williams: > Instead of assuming root is "/" > I'll need to extract what root is from an absolute path. Aside from > what root looks like, do most other path constructs behave similarly in > unix and windows? (like ".." and "." as examples) Yes, .. and . work the same way, except that they cannot appear in the \\server\share part. I also think that .. does not cancel these parts. As long as you use is_absolute_path() and do not simplify path components before offset_1st_component(), you should be on the safe side. > Since I don't really have a windows machine to test things it might be > slightly difficult to get everything correct quickly but hopefully we can > get this working :) I'll lend a hand, of course, as time permits. -- Hannes