This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[9.0ax86] Sync Tool fails to compare symlinkd and junction

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC9.0x bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7892
Location: Russian Federation

PostPosted: Mon May 22, 2017 12:38 pm    Post subject: [9.0ax86] Sync Tool fails to compare symlinkd and junction Reply with quote

How to reproduce:
1. Create dir F:\_1\dir with some subdirs with files and put some files into dir itself, e.g.:
Code:
F:\_1\dir\file1.txt
F:\_1\dir\subdir1\file1-1.txt
F:\_1\dir\subdir2\file2-1.txt

2. Copy F:\_1 as F:\_2.
3. Create relative symlink to F:\_1\dir near it:
Code:
cd /d F:\_1
mklink /D dir$ dir

4. Create junction to F:\_2\dir near it:
Code:
cd /d F:\_2
mklink /J dir$ dir

5. Sync dirs F:\_1 and F:\_2. TC shows files in subdirs of symlink as singles (files in subdirs of junction are invisible but TC asks to overwrite them if you start sync):
Code:
dir$\subdir1\
file1-1.txt   0   22.05.17   21:29:06   ->   
dir$\subdir2\
file2-1.txt   0   22.05.17   21:29:06   ->   

6. If you sync links F:\_1\dir$ and F:\_2\dir$, all works fine.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34594
Location: Switzerland

PostPosted: Thu May 25, 2017 4:01 am    Post subject: Reply with quote

I don't understand the setup. You write that you copy F:\_1 as F:\_2. This would also copy the "dir" subdir. But then you also create a symlink for dir subdir? That doesn't make sense, you can't have the same name "dir" in the target both as a dir and a symlink. Please explain.
_________________
Author of Total Commander
http://www.ghisler.com


Last edited by ghisler(Author) on Mon May 29, 2017 8:09 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7892
Location: Russian Federation

PostPosted: Thu May 25, 2017 5:43 am    Post subject: Reply with quote

I create relative symlink F:\_1\dir$ for F:\_1\dir and junction F:\_2\dir$ for F:\_2\dir after copying F:\_1 to F:\_2.
So both dir folders have identical contents, hence both links have identical contents also, and both upper folders F:\_1 and F:\_2 have one dir subfolder and one dir$ link to dir subfolder.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34594
Location: Switzerland

PostPosted: Mon May 29, 2017 8:10 am    Post subject: Reply with quote

OK, I will check it - could be a problem of "follow symlinks" options.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34594
Location: Switzerland

PostPosted: Mon Sep 25, 2017 8:25 am    Post subject: Reply with quote

This should be fixed in TC 9.10 beta, please test it!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC9.0x bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group