delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/01/16:32:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=EoGlxm3OO6PLsN0ZpUObTdTWjpm3jddquu/VIj+uN4AsUohG3RY7y
6RR4ReExdPcXUOvRCZugJZIdTcwDstwD35qr2lfFO5Wv+UokUrxeQB0ZDtig/08D
uftqyw40Aq0JZJpgF1Yfzx+hczyH92g0xOJoGHQD9QWqOMePhNolCo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=Vt+mrqOgLsKXNETrJt6hc3o8KTg=; b=NiBlXnk06Pc27pHkzrxO+kdiKZ7j
H1dV+OGedUqVI6mjLGbURrX1Sg8e3i0XX3khIw6gBt7TqyVjWQaU8VLRaXLIXMT2
3U3pFAMFZUThll2fPfse6hSKZ6no3ooAUAjVKD9Mtpc5WRS+Ym4SwzPqfzv+Yt2+
hgUBHAbKx5xor9w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Tue, 1 Sep 2015 22:32:29 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "permission denied" issues when removing files/folders created by cygwin
Message-ID: <20150901203229.GK23669@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAL1QdWeOZvgnQtkt5tKFQtpFvynZjYL9hiUJ9d=FKGqNT7FR7w AT mail DOT gmail DOT com> <CAOC2fq99pDSC6uta2f3bc4oCb1G5UZExK+RswaEjwutAfYN_sQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAOC2fq99pDSC6uta2f3bc4oCb1G5UZExK+RswaEjwutAfYN_sQ@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--G6nVm6DDWH/FONJq
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019