From: Stephen & Linda Smith Date: Tue, 23 Oct 2018 13:16:43 GMT Subject: Re: [PATCH 2/2] mingw: fix getcwd when the parent directory cannot be queried Message-ID: <6700297.8bfoVLpaf1@thunderbird> In-Reply-To: <3e3b1c3b1ff3363b216574f09d2c9cf22d25ad30.1540291965.git.gitgitgadget@gmail.com> On Tuesday, October 23, 2018 3:52:49 AM MST you wrote: > From: Anton Serbulov > > `GetLongPathName()` function may fail when it is unable to query > the parent directory of a path component to determine the long name > for that component. It happens, because of it uses `FindFirstFile()` s/of it/it/ > function for each next short part of path. The `FindFirstFile()` > requires `List Directory` and `Synchronize` desired access for a calling > process.