Skip to content

diff always reports symlinks as "M" #1776

@chenfengyuan

Description

@chenfengyuan

rustic version rustic v0.11.3

rm -rf a
(mkdir a;cd a;echo aaa > a.txt;ln -s a.txt b.txt)
rustic backup a
touch a/c.txt
rustic backup a
rustic snapshots
rustic diff 18f2f0f3 10d7d86f

Output of diff:

[INFO] comparing 18f2f0f3: (18f2f0f3) with 10d7d86f: (10d7d86f)
M    "a/b.txt"
+    "a/c.txt"
Files   : 1 =, 1 +, 0 -, 0 M, 0 U
Dirs    : 1 =, 0 +, 0 -, 0 M, 0 U
Symlinks: 0 =, 0 +, 0 -, 1 M, 0 U

The symlink a/b.txt has not been modified, but diff shows it as M (modified).

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: Waiting for a maintainer to triage this issue/PR

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions