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

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

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

Post by *MVV »

How to reproduce:
1. Create dir F:\_1\dir with some subdirs with files and put some files into dir itself, e.g.:

Code: Select all

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: Select all

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

Code: Select all

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: Select all

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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.
Last edited by ghisler(Author) on 2017-05-29, 14:09 UTC, edited 1 time in total.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will check it - could be a problem of "follow symlinks" options.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 9.10 beta, please test it!
Author of Total Commander
https://www.ghisler.com
Post Reply