This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
- From: Houder <houder at xs4all dot nl>
- To: cygwin at cygwin dot com
- Date: Fri, 20 Sep 2019 11:11:37 +0200
- Subject: Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
- References: <bc3df101ab93c20b86c3ab7fa7d3ea4f@xs4all.nl> <20190827152549.GY11632@calimero.vinschen.de> <a47cc167b725c08e6f1c914166fabcaf@smtp-cloud8.xs4all.net> <3E262D05-F393-453A-9E43-B248DDE50812@solidrocksystems.com> <b97e4dbe952154efc68412540514ae81@smtp-cloud8.xs4all.net> <20190828125939.GL11632@calimero.vinschen.de> <421ac447-b249-da21-1ca5-228041cfc884@redhat.com> <20190828141556.GM11632@calimero.vinschen.de> <20190828142220.GN11632@calimero.vinschen.de> <ee1138b29ee4be60d62d86d59f581b2e@smtp-cloud8.xs4all.net> <4a87b7a940fb0cf76aac5f3bc5b1a8b3@smtp-cloud7.xs4all.net> <e438666b60ee08a2a3ee4ca16015382f@smtp-cloud9.xs4all.net> <f77b318f-0c52-4b5f-3738-ff882804e84a@cornell.edu> <e7cb47be199186f3c7438a0bfcc8c7df@smtp-cloud7.xs4all.net>
- Reply-to: cygwin at cygwin dot com
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