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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/