This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Cygwin: mkdir and rmdir: treat drive names specially


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]