delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/23/14:49:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <388B5C3A.A2CD1A4E@cs.unc.edu>
Date: Sun, 23 Jan 2000 14:53:30 -0500
From: Jeffrey Juliano <juliano AT cs DOT unc DOT edu>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: bug doing mv on a shared directory

I think I've found a bug, but I don't know enough about windows to
really say more.


I'm running Cygwin-1.0 (CD dll) on windowsNT-4.0-sp5.  The directory
D:\downloads was "shared" so that it was visible to other computers.

Here's what I did:

  cd /d
  mkdir binary
  mount -b -s 'D:\binary' /d/binary
  mv downloads binary

Afterwords, I remembered that D:\downloads was shared.  So, in explorer,
I right-clicked on D:\binary\downloads, and set up sharing to use the
same sharename that it had previously been shared as.  When I clicked on
OK in the sharing dialog box to apply the changes, a dialog box popped
up that:

 * informed me that that sharename was already in use by D:\downloads
 * asked if I wanted D:\binary\downloads to be shared by that name
instead

So I clicked OK, telling it to remove the share from D:\downloads and
use that sharename for D:\binary\downloads.  This is not what I'd
expected to happen.  D:\downloads no longer existed on my system at that
time.


Seems to me like a dangling sharename pointer?  The missing component
here, I think, is that when you move a dir using explorer, and the dir
is shared, explorer pops up an OK-Cancel dialog box telling you that if
you go through with the move, the dir will no longer be shared.  It
seems that cygwin is skipping this check, and somehow the sharename is
still allocated.

If this behavior is by design, and remains the default behavior, then
perhaps it would be good to add an option to mv (and rm?) for removing
any sharenames.


If you need more info, please ask.

-jeff

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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