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:message-id:from:reply-to:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=e7UtJU 5G9STmc9xGKQDPVQ5HZpt7Aon35vbEkiLx7RH5v2Ah0RPSPaUdKkGjsRw9RdtnWy sbcWNrfM0PQU0sf8xkF///vaY8m7c7x0Pys6cyHrS0syAq3TlIgzhaiaL691sUIy z0EE/aOz0VVU+cW9xh5OnD9SWf0aTBE1F/BnQ= 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:message-id:from:reply-to:to:subject :references:in-reply-to:content-type; s=default; bh=szeCVm5OL0Ev j0gKFrcqgj/WzP0=; b=PArBXhP4FU7od0nZ3wEzcz++86z2DoW2L8gWZOgGGzti xpOupXB9275JNr2+oVROiMR0WBG4hvdmN7sQZxfdYt6EU5ie8FO0hB6YfAt+x0Nk JZTypQwgw//ZFMOvxkcEGmadBzw1Sqf4Lg5QCO+7dIG0dnuCitxeD2ubfcgpW1M= 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=-2.0 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,NUMERIC_HTTP_ADDR,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=D*@, Block, H*M:smtp, device X-HELO: lb2-smtp-cloud7.xs4all.net Date: Fri, 20 Sep 2019 11:11:37 +0200 Message-ID: <3eca1ecf200f0075efd154544c2fd5b4@smtp-cloud7.xs4all.net> From: Houder Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ... 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> In-Reply-to: Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 On Fri, 20 Sep 2019 09:55:59, Houder wrote: [snip] > So, in general this piece of code should NOT be executed. And I doubt if > it is ever reached in case of a device path, like \\.\e: (did not check). Did check. Using my modified code (and debugger). Yes, the code snippet is reached in case of \\.\e: However it acts as a no-opt in that case. 64-@@ stat '\\.\e:' File: \\.\e: Size: 219 Blocks: 6294892 IO Block: 65536 regular file Device: c3h/195d Inode: 264012044752017013 Links: 0 Access: (0644/-rw-r--r--) Uid: ( 1000/ Henri) Gid: ( 513/ None) Access: 16517-07-08 10:41:04.823790000 +0200 Modify: 24765-07-23 04:41:36.216813500 +0200 Change: 27044-04-14 13:59:54.642955700 +0200 Birth: - 64-@@ stat '\\.\e:\' stat: cannot stat '\\.\e:\': Not a directory As I said already, the snippet should NOT be executed in general. Perhaps it is another left-over from old times that should have been deleted. Henri -- 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