From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15347 invoked by alias); 20 Sep 2019 09:11:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15338 invoked by uid 89); 20 Sep 2019 09:11:42 -0000 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 Received: from lb2-smtp-cloud7.xs4all.net (HELO lb2-smtp-cloud7.xs4all.net) (194.109.24.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Sep 2019 09:11:40 +0000 Received: from tmp.4RWP7gFzLG ([83.162.234.136]) by smtp-cloud7.xs4all.net with ESMTPSA id BEwyiUSkP9D4hBEwzicvUQ; Fri, 20 Sep 2019 11:11:37 +0200 Date: Fri, 20 Sep 2019 18:20:00 -0000 Message-ID: <3eca1ecf200f0075efd154544c2fd5b4@smtp-cloud7.xs4all.net> From: Houder Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ... References: <20190827152549.GY11632@calimero.vinschen.de> <3E262D05-F393-453A-9E43-B248DDE50812@solidrocksystems.com> <20190828125939.GL11632@calimero.vinschen.de> <421ac447-b249-da21-1ca5-228041cfc884@redhat.com> <20190828141556.GM11632@calimero.vinschen.de> <20190828142220.GN11632@calimero.vinschen.de> <4a87b7a940fb0cf76aac5f3bc5b1a8b3@smtp-cloud7.xs4all.net> In-Reply-to: Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 X-SW-Source: 2019-09/txt/msg00212.txt.bz2 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