https://bugs.kde.org/show_bug.cgi?id=419373

            Bug ID: 419373
           Summary: Synchronizer: Files that are linked lose their dates
           Product: krusader
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: synchronize
          Assignee: krusader-bugs-n...@kde.org
          Reporter: toni.ase...@kdemail.net
                CC: krusader-bugs-n...@kde.org
  Target Milestone: ---

SUMMARY

When using Synchronizer, files that are linked lose their dates. At least, if a
symlink is added to a folder and it's synchronized: after the synchronization,
in the destination folder, the corresponding linked file loses its date (and
gets the date of the symlink).

This is a (fortunately) reproducible problem.


STEPS TO REPRODUCE

1) Execution of:
    mkdir /tmp/source
    touch /tmp/source/1.txt --date "2011-11-11 11:11:11 +0100"
    mkdir /tmp/dest
    cp -a /tmp/source/1.txt /tmp/dest
    cd /tmp/source
    ln -s 1.txt 1link.txt

2) Execution of:
    ls --full-time /tmp/source
and
    ls --full-time /tmp/dest
in order to have written information about some dates, for example:

    $ ls --full-time /tmp/source
    total 0
    lrwxrwxrwx 1 user user 5 2020-01-11 12:28:52.269082028 +0100 1link.txt ->
1.txt
    -rw-rw-r-- 1 user user 0 2011-11-11 11:11:11.000000000 +0100 1.txt

    $ ls --full-time /tmp/dest
    total 0
    -rw-rw-r-- 1 user user 0 2011-11-11 11:11:11.000000000 +0100 1.txt

3) Use of Krusader to synchronize /tmp/dest (in the left part) and /tmp/source
(in the right part). Note: The only change that Synchronizer suggested was the
copy of the symlink.

4) After the synchronization, execution of:
    ls --full-time /tmp/source
and
    ls --full-time /tmp/dest
in order to see what has happened to some dates, for example:
    $ ls --full-time /tmp/source
    total 0
    lrwxrwxrwx 1 user user 5 2020-01-11 12:28:52.269082028 +0100 1link.txt ->
1.txt
    -rw-rw-r-- 1 user user 0 2011-11-11 11:11:11.000000000 +0100 1.txt

    $ ls --full-time /tmp/dest
    total 0
    lrwxrwxrwx 1 user user 5 2020-01-11 12:30:57.833085753 +0100 1link.txt ->
1.txt
    -rwxrwxrwx 1 user user 0 2020-01-11 12:28:52.000000000 +0100 1.txt

Therefore we can see that an existing file (/tmp/dest/1.txt) in the destination
folder has lost its date.

Note: After the copy, it would also be correct that the date of the copied
symlink was the same as its source.


OBSERVED RESULT

An existing file (/tmp/dest/1.txt) in the destination folder has lost its date.


EXPECTED RESULT

The "/tmp/dest/1.txt already existing file in the destination folder...
shouldn't lose its date.

Additionally, it would be better if the date of the copied symlink was the same
as its source.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Kubuntu 19.10 and Kubuntu 18.04 LTS
KDE Plasma Version: 5.16.5 and 5.12.9
KDE Frameworks Version: 5.62.0 and 5.44.0
Qt Version: 5.12.4 and 5.9.5


ADDITIONAL INFORMATION

The problem is possibly related to the `KIO::symlink` lines in
synchronizer.cpp.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to