From 947bd0bf57ae00a76c922452d55e3f6e43aa10fc Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Mon, 16 Oct 2023 14:31:08 +0200 Subject: [PATCH] fix diff --- cmd/plakar/cmd_diff.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/plakar/cmd_diff.go b/cmd/plakar/cmd_diff.go index 0e706e4f..cee857de 100644 --- a/cmd/plakar/cmd_diff.go +++ b/cmd/plakar/cmd_diff.go @@ -187,9 +187,9 @@ func fiToDiff(fi vfs.FileInfo) string { func diff_files(snapshot1 *snapshot.Snapshot, snapshot2 *snapshot.Snapshot, filename1 string, filename2 string) { pathnameID1 := snapshot1.Filesystem.GetPathnameID(filename1) - pathnameID2 := snapshot1.Filesystem.GetPathnameID(filename2) + pathnameID2 := snapshot2.Filesystem.GetPathnameID(filename2) object1 := snapshot1.Index.LookupObjectForPathname(pathnameID1) - object2 := snapshot1.Index.LookupObjectForPathname(pathnameID2) + object2 := snapshot2.Index.LookupObjectForPathname(pathnameID2) // file does not exist in either snapshot if object1 == nil && object2 == nil {