This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Cygwin: mkdir and rmdir: treat drive names specially
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin-patches at cygwin dot com" <cygwin-patches at cygwin dot com>
- Date: Mon, 7 Oct 2019 20:16:12 +0000
- Subject: Re: [PATCH] Cygwin: mkdir and rmdir: treat drive names specially
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AbxSd/7U1alhxx6uuklbT17zVdXVp2SpZTQ++hIb1fk=; b=CaediX/ESANlMJS5mndnVxazCXjDIX5By3udMb1SH+Kuieju+sYwnQUSZeuP0FHQHUrNX7uoP9XolpGJhR/ujsbcY2ed2b9y/Z9399bZ+pV0K6x3/3REEFY86EuMh8GYGrnC0fSRpww5fX0CxOuzPgXpRy2WYIfKphjdWo9GggTNNFIT6jrgkeaJcrrNJ/B3soCWKYufIs3x0idJR6YDUvsvOf+oL+XgeFr3ohAWAFpN4Z5Z3BaadbkfVaOEV9SkKT/ka3KmL3u6I7IDUCxiielfWsRD/2ZLSG4GeMegFLwE7SWhlGBWcwDQgGQS1Rfi+UoFgLbA8hVKBw4NgBkaZg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lydDu8x+kT8aanKFA09EBImC9larfR+u3+jilelhTvr8cYl965zMc5Vb4F+tYCtqC1Csi28m23g3deLRUaPOb3Hhfjqv9PLWKFG3kK4QvYnEcG2wd96oOoYV1c/bFK1oGkQeT0cJf/5EabV1P8uj/VJjOLzve64EdcEhlPFThHYSLurBJtf5EOkwqdPuTaL920QJC+d1zpk8Rc6+X70P++1SG5DJvGr7FC6M8yQETfTGpkMrWO10ozPch5sdK7+V1soI9FsGsDpj41OYUbEMeZV1T5MqR3hyxGs363NresYHJnaNszHWzxQk152A3I5rN1EKngoYrH3bCOwGBojl2A==
- References: <20190927184400.1478-1-kbrown@cornell.edu>
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