From: Junio C Hamano Date: Thu, 08 Dec 2016 16:54:29 GMT Subject: Re: [PATCH] real_path: make real_path thread-safe Message-ID: In-Reply-To: <1767f01a-4125-d99b-37db-3f4a56aaa28a@kdbg.org> Johannes Sixt writes: > 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. Thanks, as always, for working well together ;-).