This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Finding junction points in cygwin


On Nov  9 09:17, aputerguy wrote:
> 
> Actually the behavior is even stranger... renaming and then deleting
> junctions creates spurious directories.
> 
> echo "This is a test file" >| targetfile
> mkdir targetdir
> echo "This is a test dir file" >| targetdir/targetdirfile
> 
> junction.exe junctionfile targetfile
> junction.exe junctiondir targetdir
> 
> ls -Ag
> drwxr-xr-x 1 None  0 2009-11-09 11:56 junctiondir/
> -rw-r--r-- 1 None 20 2009-11-09 11:55 junctionfile
> drwxr-xr-x 1 None  0 2009-11-09 11:56 targetdir/
> -rw-r--r-- 1 None 20 2009-11-09 11:55 targetfile
> 
> mv junctionfile newjunctionfile
> mv junctiondir newjunctiondir
> 
> ls -Ag 
> drwxr-xr-x 1 ????????  0 2009-11-09 11:57 junctiondir/
> drwxr-xr-x 1 ????????  0 2009-11-09 11:57 junctionfile/
> drwxr-xr-x 1 None      0 2009-11-09 11:56 newjunctiondir/
> -rw-r--r-- 1 None     20 2009-11-09 11:55 newjunctionfile
> 
> junction.exe -d junctionfile
> junction.exe -d junctiondir
> 
> ls -Ag
> drwxr-xr-x  1 None  0 2009-11-09 11:56 newjunctiondir/
> -rw-r--r--  1 None 20 2009-11-09 11:55 newjunctionfile
> drwx------+ 1 None  0 2009-11-09 12:01 targetdir/
> drwx------+ 1 None  0 2009-11-09 12:01 targetfile/
> 
> Now this seems to be sheer madness.

Indeed, and I can't reproduce this, neither in Cygwin 1.5.25, nor in
Cygwin 1.7.  The only difference between your and my run is that I'm
using the cmd mklink builtin rather than the junction tool, like this:

 $ cmd /c mklink /j junctionfile targetfile
 Junction created for junctionfile <<===>> targetfile
 $ cmd /c mklink /j junctiondir targetdir
 Junction created for junctiondir <<===>> targetdir

BLODA?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]