public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* bug doing mv on a shared directory
@ 2000-01-23 11:53 Jeffrey Juliano
  0 siblings, 0 replies; only message in thread
From: Jeffrey Juliano @ 2000-01-23 11:53 UTC (permalink / raw)
  To: cygwin

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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-23 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-23 11:53 bug doing mv on a shared directory Jeffrey Juliano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).