X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=jQ0Hw27LLEC1DU42 /D9FImXlb58Z5ZHaieVmsb0OMNOaWF0wKarIeNGK24DdkvRk6N7C6wdE4hI4D5Zk TW4BnGXXZf0yY+8KtFL1n/Ql7U93SulHSTpJBiAO+MDR0g0DT9P1YtcVkMyavted tZmLGY9hbkEX9ogOL4Sc4Bu4M+s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=4kMZ59NEM5LoujhSTcQjWM SysEE=; b=OT/XDJ6W0RQ83lWHLZT/BLEAErH5Nhk6jts+4IhTceMF0BvUSgukal sf1VksAVXCIfP9EdcTNtLRyuiSX1ONclk6Mu3MJqs/ChwSyxJgf+4ZNr6cFg4FG3 U+t3+8tR3k9PE7XCd94dNQ2TeFWxvKuMnv6I8BsZnDTz54IM+0ByY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Priority:Normal, H*M:yandex, H*r:build, H*UA:Bat! X-HELO: forward105o.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1567493401; bh=hye2DCwUzx6xP3JuprL3w2Rh1aQdnJ2WaNp57mi5IOk=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=V1KJc5vlQ0i+MP9dGXjvTy5hbbQDdu2Vkh820FPj5kUiDhOIS5ndA5XxzTl7gifoY O8spAygM0JvffPKVrdti7PBnigEATLdzPULR4DV3bVNcIPTEcrJhrlWEfxi/cHWuBS Bic6sXrN3JbRTKo4Wb2OfzvDJYpVlk6EJElZehw8= Authentication-Results: mxback28o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Tue, 3 Sep 2019 09:47:58 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <662460215.20190903094758@yandex.ru> To: Houder , cygwin AT cygwin DOT com Subject: Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ... In-Reply-To: References: <20190827152549 DOT GY11632 AT calimero DOT vinschen DOT de> <3E262D05-F393-453A-9E43-B248DDE50812 AT solidrocksystems DOT com> <20190828125939 DOT GL11632 AT calimero DOT vinschen DOT de> <421ac447-b249-da21-1ca5-228041cfc884 AT redhat DOT com> <20190828141556 DOT GM11632 AT calimero DOT vinschen DOT de> <20190828142220 DOT GN11632 AT calimero DOT vinschen DOT de> <4a87b7a940fb0cf76aac5f3bc5b1a8b3 AT smtp-cloud7 DOT xs4all DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Houder! > Examining this (obsure) method in path.cc, I corrected the code > in 2 places: > --- > if (dev.isfs ()) > { > //if (strncmp (path, "\\\\.\\", 4)) <==== 1171 > if ( ! strncmp (path, "\\\\.\\", 4)) // <==== [1] > { > if (!tail || tail == path) > /* nothing */; > else if (tail[-1] != '\\') > *tail = '\0'; <==== Ah! (you should not do that!) > else > { > error = ENOENT; > return; > } > } > [1] this code should be executed only if path == '\\.\' !! "\\.\" is an UNC reference to "this host". Used f.e. in references to Windows "named pipes". -- With best regards, Andrey Repin Tuesday, September 3, 2019 9:46:42 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple