www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/12/07:43:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 12 Sep 2010 13:43:21 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Oddities with file deletion on CIFS drive
Message-ID: <20100912114321.GR16534@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1830BEA90D9D88BCE0394504@[192.168.1.2]> <20100911104111 DOT GN16534 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20100911104111.GN16534@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Sep 11 12:41, Corinna Vinschen wrote:
> On Sep 10 10:48, Quanah Gibson-Mount wrote:
> > --On Friday, September 10, 2010 7:09 PM +0200 Corinna Vinschen wrote:
> > 
> > >>Let me know if there is anything else I can provide.
> > >
> > >I'm not sure.  I don't think so.  The problem is that the unlink(2)
> > >function in Cygwin does not get any error code from any of the OS
> > >functions it calls.  So, from the Cygwin POV everything worked fine.
> > >How is it supposed to know that anything has gone wrong, if the
> > >underlying OS doesn't tell?
> > 
> > Heh, magic I guess.  If I mount the drive as a CIFS drive from a Linux box,
> > I can delete the files just fine, so for now that gives me a workaround
> > (I'll move my deletion process to a Linux box).
> 
> This morning I had an idea.  While we were looking into the ACL, we
> neglected the DOS attributes.  When you call `attrib' on one of the
> files for which you didn't call chmod yet, is the R/O attribute set?
> 
> If so, it *could* explain why Cygwin thought it has successfully deleted
> the file, but it hasn't.  I also might have a workaround for this.

I've checked in a change which probably fixed your issue.  The only
exception are Cygwin symlinks of the old ".lnk" type, which has more
than one link.  That should occur rather seldom.  Please test the
next developer's snapshot from http://cygwin.com/snapshots/


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          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

- Raw text -


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