delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/26/07:10:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 26 Mar 2009 13:09:36 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: wget -k downloading to shares fails with seemingly spurious "permission denied" error
Message-ID: <20090326120936.GM12738@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <47vfs4dac6vvqa6f4mfivec8eaouv7uh5q AT 4ax DOT com> <3ddks4tqteaeq43gs7sjonhf41pei8q73e AT 4ax DOT com> <20090325155104 DOT GB12738 AT calimero DOT vinschen DOT de> <49CB6EDC DOT 3090002 AT byu DOT net>
MIME-Version: 1.0
In-Reply-To: <49CB6EDC.3090002@byu.net>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mar 26 06:02, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Corinna Vinschen on 3/25/2009 9:51 AM:
> > No, I can reproduce it using an XP client and a remote directory on my
> > 2K8 domain controller.  Examining the strace output from wget, you can
> > see that wget tries to delete the file while still having a file mapping
> > open.  That's the problem.  Windows doesn't allow to delete remote files
> > with an open file mapping.  I don't know any way around that.
> > 
> > In theory, wget would have to be fixed to not do that on Cygwin.
> 
> I'll see if I can locate the offending code, and report it upstream.

Cool, thanks.  But we should better test this first before you send this
upstream.  I'm not entirely sure if my explanation is correct.  I tried
various different ways to delete the file but none worked.  Every
method, even just using delete-on-close, returns the *very* *helpful*
STATUS_CANNOT_DELETE message.  The open file mapping looks like the only
possible explanation but I couldn't find any documentation which
supports my theory, now that I'm searching for it...


Corinna

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

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

- Raw text -


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