Re: Deleting files with open handles on subst'd drives

2015-04-23 Thread Nick Hansen
Unsubscribe

Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network.
  Original Message  
From: Corinna Vinschen - corinna-cyg...@cygwin.com
Sent: Thursday, April 23, 2015 9:25 AM
To: cygwin@cygwin.com
Reply To: cygwin@cygwin.com
Subject: Re: Deleting files with open handles on subst'd drives

On Apr 23 10:15, Corinna Vinschen wrote:
> On Apr 23 01:44, David Macek wrote:
> > Hello everyone.
> > 
> > Some time ago, I encountered a problem in a script when run on 
> > Cygwin/MSYS2. To add some drama, I'll mention that the problem caused some 
> > data loss (nothing important though). The problem is that some operations 
> > on open files seem to fail on subst'd drives (but not on regular ones).
> > 
> > To reproduce the problem, choose some writable directory and run:
> > $ subst X: C:/somesubdir
> > $ cd /cygdrive/x/
> > $ touch foo
> > $ { rm foo; touch foo; }  > touch: cannot touch 'foo': Permission denied
> > 
> > (Do not subst to just C:/, because that somehow doesn't lead to the error.)
> > 
> > There's also a C program that does essentially the same thing: 
> > 
> > 
> > I compared this with the same operations running on a regular drive,
> > but I couldn't find any difference in how `rm` deletes the file nor in
> > how `touch` creates the file. Just the result of the last NtCreateFile
> > is different (STATUS_SUCCESS vs. STATUS_DELETE_PENDING).
> 
> It's a result of how Cygwin tries to workaround the weird Windows
> behaviour that a deleted, but still opened file is not invisible in the
> filesystem, as desired per POSIX. Cygwin then tries to move the
> file out of the way, on local drives into the recycler. This fails
> on a subst drive pointing to some subdir apparently, so Cygwin just
> falls back to what Windows does.
> 
> I have no simple workaround for that. In theory there should be a
> way to check the drive for being a virtual drive and then using the
> recycler of the drive it's pointing to for the aforementioned operation.

I hacked a bit on that and it seems the solution was easier than I thought.
I uploaded new developer snaphshots to https://cygwin.com/snapshots/
Replacing the Cygwin DLL alone is sufficient for testing. Please give it
a try.


Thanks,
Corinna

-- 
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: [ANNOUNCEMENT] Updated: qt3-3.3.8b-17, qt4-4.8.6-7

2015-04-23 Thread Nick Hansen
unsubcribe

-Original Message-
From: Yaakov Selkowitz - yselkow...@cygwin.com 
[mailto:cygwin2.ares0.27aae075b3.yselkowitz#cygwin@ob.0sg.net] 
Sent: Thursday, April 23, 2015 10:15 AM
To: cygwin@cygwin.com
Subject: [ANNOUNCEMENT] Updated: qt3-3.3.8b-17, qt4-4.8.6-7

The following packages have been updated for the Cygwin distribution:

* libqt3-3.3.8b-17
* libqt3-devel-3.3.8b-17
* qt3-devel-tools-3.3.8b-17
* qt3-doc-3.3.8b-17
* qt3-qtconfig-3.3.8b-17

* libQt3Support4-4.8.6-7
* libQt3Support4-devel-4.8.6-7
* libQtCore4-4.8.6-7
* libQtCore4-devel-4.8.6-7
* libQtDBus4-4.8.6-7
* libQtDBus4-devel-4.8.6-7
* libQtDeclarative4-4.8.6-7
* libQtDeclarative4-devel-4.8.6-7
* libQtDesigner4-4.8.6-7
* libQtDesigner4-devel-4.8.6-7
* libQtGui4-4.8.6-7
* libQtGui4-devel-4.8.6-7
* libQtHelp4-4.8.6-7
* libQtHelp4-devel-4.8.6-7
* libQtMultimedia4-4.8.6-7
* libQtMultimedia4-devel-4.8.6-7
* libQtNetwork4-4.8.6-7
* libQtNetwork4-devel-4.8.6-7
* libQtOpenGL4-4.8.6-7
* libQtOpenGL4-devel-4.8.6-7
* libQtScript4-4.8.6-7
* libQtScript4-devel-4.8.6-7
* libQtSql4-4.8.6-7
* libQtSql4-devel-4.8.6-7
* libQtSvg4-4.8.6-7
* libQtSvg4-devel-4.8.6-7
* libQtTest4-4.8.6-7
* libQtTest4-devel-4.8.6-7
* libQtXml4-4.8.6-7
* libQtXml4-devel-4.8.6-7
* libQtXmlPatterns4-4.8.6-7
* libQtXmlPatterns4-devel-4.8.6-7
* qt4-devel-tools-4.8.6-7
* qt4-designer-plugin-webkit-4.8.6-7
* qt4-doc-4.8.6-7
* qt4-qtconfig-4.8.6-7

Qt is a cross-platform application framework for desktop and embedded 
development. Qt enables programmers to create advanced GUI applications once 
and deploy them to Windows, Mac OS X and Linux without rewriting the source 
code.

These release include patches for CVE-2015-1858, CVE-2015-1859, and
CVE-2015-1860:
http://lists.qt-project.org/pipermail/announce/2015-April/67.html

--
Yaakov

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: multitail segfaults

2015-04-23 Thread Nick Hansen
unsubscribe

-Original Message-
From: Yaakov Selkowitz - yselkow...@cygwin.com 
[mailto:cygwin2.ares0.27aae075b3.yselkowitz#cygwin@ob.0sg.net] 
Sent: Thursday, April 23, 2015 10:27 AM
To: cygwin@cygwin.com
Subject: Re: multitail segfaults

On Thu, 2015-04-23 at 13:56 +0200, Frank Fesevur wrote:
> 2015-04-23 11:04 GMT+02:00 Dr. Volker Zell:
> > For me it works on 32bit cygwin, but on 64bit I get an error:
> >
> >  xclip binary 'xclip' does not extist
> >
> > and in fact 32bit has /usr/bin/xclip installed but in 64bit it's 
> > missing
> 
> Manually installing xclip solves the crash for me. So while you are on 
> it, could you please update the dependencies of the multitail package?

Fixed on sourceware.

Dr. Volker, please remember to add REQUIRES=xclip to your multitail.cygport so 
this doesn't get lost in the future.

--
Yaakov




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: Deleting files with open handles on subst'd drives

2015-04-23 Thread Nick Hansen
David,

I want to be unsubscribed from the mailing list and thread.  I will not click 
the link below because I do not know if it is a virus.  Please remove 
immediately.



-Original Message-
From: David Macek - david.mace...@gmail.com 
[mailto:cygwin2.ares0.2af6b9dd8b.david.macek.0#gmail@ob.0sg.net] 
Sent: Thursday, April 23, 2015 10:32 AM
To: cygwin@cygwin.com
Subject: Re: Deleting files with open handles on subst'd drives

On 23. 4. 2015 15:25, Nick Hansen wrote:
> Unsubscribe

Are you trying to unsubscribe from a thread, or from the whole mailing list? 
Please read:

http://cygwin.com/ml/#unsubscribe-simple

-- 
David Macek



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple