Files with attribute temporary invisible in cygwin

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Mar 9 20:29:00 GMT 2018


On Mar  9 14:56, Pavel Kudrna wrote:
> On 9/3/2018 10:26, Corinna Vinschen wrote:
> > On Mar  9 00:43, Pavel Kudrna wrote:
> > > There exist files in windows 7 which can't be deleted using cygwin "rm"
> > > command. Files are visible from windows command line or Windows Explorer but
> > > are invisible by "ls -lA" command:
> > 
> > https://cygwin.com/ml/cygwin/2018-02/msg00162.html
> > 
> > Corinna
> 
> Thanks.
> 
> With the snapshot 2018-02-14 files with temporary attribute are visible and
> deletable.
> 
> But still I have directories undeletable using "rm -R" which contain files
> with both hidden and temporary attributes set.

Duh.  I *knew* I had to remove this "hiding O_TMPFILE files from
readdir" at one point.  No wonder I wrote a matching comment right from
the start.

Of course this can't work with rm -r.  Given rm doesn't see this file it
never unlinks it, so the parent dir can't be removed.

I add this to my List Of Really Bad Ideas.

Still, what files have both attributes set?  What application is
creating these files?  Apart from Cygwin, of course, but Cygwin
O_TMPFILE files are delete-on-close.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180309/31148131/attachment.sig>


More information about the Cygwin mailing list