From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122389 invoked by alias); 1 Sep 2015 20:32:34 -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 122216 invoked by uid 89); 1 Sep 2015 20:32:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Sep 2015 20:32:33 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 072D4A80977; Tue, 1 Sep 2015 22:32:30 +0200 (CEST) Date: Tue, 01 Sep 2015 20:32:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: "permission denied" issues when removing files/folders created by cygwin Message-ID: <20150901203229.GK23669@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="G6nVm6DDWH/FONJq" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-09/txt/msg00018.txt.bz2 --G6nVm6DDWH/FONJq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1087 On Sep 1 13:05, Michael Enright wrote: > On Tue, Sep 1, 2015 at 12:48 PM, Roger Pack wrote: > > It appears the problem lies with creating a file named "NUL" windows > > utilities just don't know how to deal with it (you can recreate it by > > creating a folder, then from cygwin bash $ touch NUL) then try and > > remove the folder with windows explorer. >=20 > The utilities "know" how to deal with it, given their design: > http://blogs.msdn.com/b/oldnewthing/archive/2003/10/22/55388.aspx And then there's https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-dosdevic= es You can create and delete those files even in CMD, btw. You just have to use the long pathname prefix "\\?\", e.g.: bash$ cmd /c 'echo foo > \\?\c:\cygwin64\home\corinna\nul' bash$ ls -l nul -rwxr-xr-x 1 corinna vinschen 6 Sep 1 22:30 nul delete with bash$ rm nul or bash$ cmd /c 'del \\?\c:\cygwin64\home\corinna\nul' Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --G6nVm6DDWH/FONJq Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJV5gtdAAoJEPU2Bp2uRE+gz+YQAJj1mDyv2lvkVewv33c/kuAm Ha9zEq3QgLAoLZ4HIVz5D8cgZAdr9bBK2bMm2Hnrwpgz/x9Au9jmknHJy75EQkes WchVZyMaz8hZ5ULBjmZeApYS/+zeMnNGgCapoylMQN+LIlRkvhmU6SSyOi577BHr o2NjXUJCdYBN+GxgPfYnfU+KbncRJTUMiNkKVTT6NbCiOEBvsXb5hiq6Y9y7wOM+ Hs5yL5HpyGrIQgpIoHiqodxhP7NRYHW09EFZQWVjUUg5YOFA1Zkixi2rxgnGZbag F0hGFzngqSNght+yIJ+UMZ4WgVyFS7lpbJJvCPWaoiC82pMYQUGW9Q166awa6DOz GnZcHEU/7a4oZIpuos7Rwbz2VNv+FH9zWVFDL/yqC1hIP/5CZBxVBdxUDBOoF2Au o6X9QQ3OfE+s3D8tymH2geMkRuVCmEGwXB8+P2H0O2YS2c5Wr5K/7IGIi+O5ARwc E0WzwbuXvLUCi/YiMCCLsdIJCBMKik/lV7UiLZaMt68q8uejfWomkJLRVNWWouml OsYeRfhvJIWJKjL32AR0u3J+yelrsHQSz0e4frYfv6SjUvWZZTEBzVU6kz/i2wcs dQRsQJd9mYXjp+5t8XPl9PB+XNnkjpEjcn2dteMK3l0CnHBkipWog5kALKoMNtxG GfBhl677I/A77JVB5LYS =ouI9 -----END PGP SIGNATURE----- --G6nVm6DDWH/FONJq--