delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/25/08:35:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 25 Jul 2012 14:34:45 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/)
Message-ID: <20120725123445.GH29107@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <500B961D DOT 6050303 AT tlinx DOT org> <20120723091400 DOT GC12741 AT calimero DOT vinschen DOT de> <500F4AE6 DOT 8090208 AT tlinx DOT org>
MIME-Version: 1.0
In-Reply-To: <500F4AE6.8090208@tlinx.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 Jul 24 18:24, Linda Walsh wrote:
> Corinna Vinschen wrote:
> >The only problem is that:  Even though I see how I could potentially
> >enforce the situation, I fail to reproduce it.  Can you explicitely show
> >an ls of the dir and an strace of an rmdir which succeeded to rename the
> >dir?
> >
> >I'll might send you a test DLL via PM at one point, if that's ok with
> >you.
> ---
> Sigh...
> [...]
>   150   67361 [main] rmdir 945084 unlink_nt: Trying to delete
> \??\C:\Users\law\Pictures\Avatars, isdir = 1
>  3470   70831 [main] rmdir 945084 unlink_nt: Sharing violation when
> opening \??\C:\Users\law\Pictures\Avatars
> 12291   83122 [main] rmdir 945084 try_to_bin:
> \??\C:\Users\law\Pictures\Avatars, return status 2
>   339   83461 [main] rmdir 945084 unlink_nt: \??\C:\Users\law\Pictures\Avatars,
> return status = 0x0
>  9604   93065 [main] rmdir 945084 rmdir: 0 = rmdir(Pictures/Avatars)

Thanks, that was the interesting part.  This is exactly the situation I
failed to reproduce, but now I found out why.  Apparently newer Samba
versions perform a few parameter checks in certain file-related calls,
not performed by older Samba, nor by NTFS or FAT drivers.

Anyway, I have a fix for that.  You didn't explicitely allow to send
a test DLL, so I just applied the patch to CVS.  Please test the next
developer snapshot.


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