Fixed DEDUPE doesn't handle filenames with whitespace properly when symlinking

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jul 29, 2016
36
1
#1
The symlinks that are created when DEDUPING don't point to the correct file when the original file has whitespace in its name. See below

---
Mon Sep 12, 2016 3:49:34p


C:\Users\Mark\Documents\dedupetest>ver /r

TCC 20.00.17 x64 Windows 8.1 [Version 6.3.9600]
TCC Build 17 Windows 8.1 Build 9600
Registered to MARK5-WIN8

C:\Users\Mark\Documents\dedupetest>dir

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\*

9/12/2016 15:43 <DIR> .
9/12/2016 15:43 <DIR> ..
0 bytes in 0 files and 2 dirs
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>md foo

C:\Users\Mark\Documents\dedupetest>echo Test One > foo\test1.txt

C:\Users\Mark\Documents\dedupetest>echo Test Two > "foo\test 2.txt"

C:\Users\Mark\Documents\dedupetest>dir foo\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\foo\*

9/12/2016 15:44 <DIR> .
9/12/2016 15:44 <DIR> ..
9/12/2016 15:44 10 test 2.txt
9/12/2016 15:44 10 test1.txt
20 bytes in 2 files and 2 dirs 8,192 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>md bar

C:\Users\Mark\Documents\dedupetest>copy foo\* bar\
C:\Users\Mark\Documents\dedupetest\foo\test 2.txt => C:\Users\Mark\Documents\dedupetest\bar\test 2.txt
C:\Users\Mark\Documents\dedupetest\foo\test1.txt => C:\Users\Mark\Documents\dedupetest\bar\test1.txt

2 files copied

C:\Users\Mark\Documents\dedupetest>dir bar\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\bar\*

9/12/2016 15:45 <DIR> .
9/12/2016 15:45 <DIR> ..
9/12/2016 15:44 10 test 2.txt
9/12/2016 15:44 10 test1.txt
20 bytes in 2 files and 2 dirs 8,192 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>start /elevated dedupe /l /s * foo\ bar\ > output.txt

C:\Users\Mark\Documents\dedupetest>dir

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\*

9/12/2016 15:46 <DIR> .
9/12/2016 15:46 <DIR> ..
9/12/2016 15:46 <DIR> bar
9/12/2016 15:44 <DIR> foo
9/12/2016 15:46 540 output.txt
540 bytes in 1 file and 4 dirs 4,096 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>type output.txt
C:\Users\Mark\Documents\dedupetest\foo\test 2.txt
Deleting C:\Users\Mark\Documents\dedupetest\bar\test 2.txt
Symbolic link created for C:\Users\Mark\Documents\dedupetest\bar\test 2.txt <<===>> C:\Users\Mark\Documents\dedupetest\foo\test
C:\Users\Mark\Documents\dedupetest\foo\test1.txt
Deleting C:\Users\Mark\Documents\dedupetest\bar\test1.txt
Symbolic link created for C:\Users\Mark\Documents\dedupetest\bar\test1.txt <<===>> C:\Users\Mark\Documents\dedupetest\foo\test1.txt
Total files: 4 Unique: 0 Duplicates: 4

C:\Users\Mark\Documents\dedupetest>dir foo\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\foo\*

9/12/2016 15:44 <DIR> .
9/12/2016 15:44 <DIR> ..
9/12/2016 15:44 10 test 2.txt
9/12/2016 15:44 10 test1.txt
20 bytes in 2 files and 2 dirs 8,192 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>dir bar\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\bar\*

9/12/2016 15:46 <DIR> .
9/12/2016 15:46 <DIR> ..
9/12/2016 15:46 <SYMLINK> test 2.txt [C:\Users\Mark\Documents\dedupetest\foo\test]
9/12/2016 15:46 <SYMLINK> test1.txt [C:\Users\Mark\Documents\dedupetest\foo\test1.txt]
0 bytes in 2 files and 2 dirs
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>type bar\test1.txt
Test One

C:\Users\Mark\Documents\dedupetest>type "bar\test 2.txt"
TCC: (Sys) The system cannot find the file specified.
"C:\Users\Mark\Documents\dedupetest\bar\test 2.txt"

C:\Users\Mark\Documents\dedupetest>