From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 7FF661F453 for ; Tue, 23 Oct 2018 13:16:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728052AbeJWVkM (ORCPT ); Tue, 23 Oct 2018 17:40:12 -0400 Received: from fed1rmfepo101.cox.net ([68.230.241.143]:59566 "EHLO fed1rmfepo101.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbeJWVkM (ORCPT ); Tue, 23 Oct 2018 17:40:12 -0400 Received: from fed1rmimpo209.cox.net ([68.230.241.160]) by fed1rmfepo101.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20181023131644.IDSM4101.fed1rmfepo101.cox.net@fed1rmimpo209.cox.net> for ; Tue, 23 Oct 2018 09:16:44 -0400 Received: from thunderbird.smith.home ([68.2.114.239]) by fed1rmimpo209.cox.net with cox id r1Gk1y00859yGBo011GkAB; Tue, 23 Oct 2018 09:16:44 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A090202.5BCF1F3C.0052,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.3 cv=PcBLeRpd c=1 sm=1 tr=0 a=BlDZPKRk22kUaIvSBqmi8w==:117 a=BlDZPKRk22kUaIvSBqmi8w==:17 a=kj9zAlcOel0A:10 a=smKx5t2vBNcA:10 a=WDhBSedXqNQA:10 a=nHVxSsbvAAAA:8 a=T9MQsSbNw1cZtKq-aZkA:9 a=CjuIK1q_8ugA:10 a=NZJ8GFk-Z7heW4sy7ZCy:22 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (LOGIN) smtp.auth=ischis2@cox.net Received: from thunderbird.localnet (localhost [127.0.0.1]) by thunderbird.smith.home (Postfix) with ESMTP id 0ACB629A00F7; Tue, 23 Oct 2018 06:16:44 -0700 (MST) From: Stephen & Linda Smith To: Anton Serbulov via GitGitGadget Cc: git@vger.kernel.org, Junio C Hamano , Anton Serbulov Subject: Re: [PATCH 2/2] mingw: fix getcwd when the parent directory cannot be queried Date: Tue, 23 Oct 2018 06:16:43 -0700 Message-ID: <6700297.8bfoVLpaf1@thunderbird> Organization: Personal In-Reply-To: <3e3b1c3b1ff3363b216574f09d2c9cf22d25ad30.1540291965.git.gitgitgadget@gmail.com> References: <3e3b1c3b1ff3363b216574f09d2c9cf22d25ad30.1540291965.git.gitgitgadget@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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.