delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/09/14:50:31

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 9 Nov 2009 20:50:11 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Finding junction points in cygwin
Message-ID: <20091109195011.GM26344@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <26260606 DOT post AT talk DOT nabble DOT com> <416096c60911082351l7e3415e2s28f10549f3cf4136 AT mail DOT gmail DOT com> <20091109120333 DOT GF26344 AT calimero DOT vinschen DOT de> <26269606 DOT post AT talk DOT nabble DOT com> <20091109171803 DOT GK26344 AT calimero DOT vinschen DOT de> <26270509 DOT post AT talk DOT nabble DOT com> <20091109180913 DOT GA14129 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20091109180913.GA14129@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 Nov  9 19:09, Corinna Vinschen wrote:
> On Nov  9 09:39, aputerguy wrote:
> > 
> > Corinna writes..
> > > Try Cygwin 1.7.  It recognizes directory junctions as symlinks.
> > 
> > $ uname -r
> > 1.7.0(0.214/5/3)
> > 
> > But don't see any symlinks...
> 
> Uh, I see.  Don't use the junction tool, use cmd's mklink instead.
> junction.exe creates directory symlinks which can't be easily recognized
> as directory junctions, at least not using the default technique.
> 
> I'll look into supporting these weird junctions as well.

Not quite as weird.  The test got actually simpler now.  I also set the
return code of rename(2) to EBUSY when you try to rename a volume
junction.  Otherwise Windows returns an error code equivalent to EXDEV
and mv(1) starts to move the directory over by copying its entire
content (cross-device mv).


HTH,
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