[PATCH] Cygwin: mkdir and rmdir: treat drive names specially
Ken Brown
kbrown@cornell.edu
Mon Oct 7 20:16:00 GMT 2019
On 9/27/2019 2:44 PM, Ken Brown wrote:
> If the directory name has the form 'x:' followed by one or more
> slashes or backslashes, and if there's at least one backslash, assume
> that the user is referring to 'x:\', the root directory of drive x,
> and don't strip the backslash.
>
> Previously all trailing slashes and backslashes were stripped, and the
> name was treated as a relative file name containing a literal colon.
>
> Addresses https://cygwin.com/ml/cygwin/2019-08/msg00334.html.
> ---
> winsup/cygwin/dir.cc | 33 ++++++++++++++++++++++++++++-----
> 1 file changed, 28 insertions(+), 5 deletions(-)
No complaints, so I've pushed this.
Ken
More information about the Cygwin-patches
mailing list