Menu

#185 command line "/mirrorback" mode does not update "date modified" of source files

1.2.6
New
nobody
None
High
Windows 7 Pro SP1
Defect
2017-09-03
2017-05-26
Flying Hawk
No

Note: everything described below applies to command line mode only. GUI doesn't seem to have this bug

I want two source folders synced with an encrypted folder. Call them "src1", "src2", and "dst".
Steps to recreate this bug:
1. Put some files in src1, keep sr2 and dst empty
2. Mirror src1 -> dst
3. Mirrorback src2 <- dst (Now all three folders are correctly synced)
4. Modify some files in src2
5. Mirror src2 -> dst. (Files and their timestamps in dst are correctly updated)
6. Mirrorback src1 <- dst. (BUG: files are updated, but timestamps are not properly updated, "date modified" is unchanged)

Incorrect timestamps have severe negative impact on future syncing.
Hope this can be fixed soon.

CryptSync 1.2.7.338
Windows 7 Professional SP1

Discussion

  • Flying Hawk

    Flying Hawk - 2017-06-12

    Turns out this issue is not specific to command line, but all decrypt operations in full scans. File sync on individually detected file changes don't have this issue.

    I fixed it by changing line 701 in FolderSync.cpp from

    if (!DecryptFile(origpath, cryptpath, pt.password, it->second, pt.useGPG))
    

    to

    if (!DecryptFile(origpath, cryptpath, pt.password, cryptit->second, pt.useGPG))
    
     

    Last edit: Flying Hawk 2017-06-12
  • Mathias Grebe

    Mathias Grebe - 2017-07-06

    Very nasty when syncing two computers..
    Will it be fixed soon in the installer versions?
    Mathias

     
    • Flying Hawk

      Flying Hawk - 2017-07-09

      I've published my "personal version" on GitHub. Installers can be downloaded on the releases page.

      It fixes this issue. But also comes with some other personal tweaks that might not be what you want.

       

Log in to post a comment.