From a2ae36bb5453d64c808a3fc0ac7062c8521978bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Andrighetti?= Date: Sun, 13 Feb 2022 19:23:40 -0300 Subject: [PATCH] Exclude directories in is_hardlink_master --- src/borg/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archive.py b/src/borg/archive.py index e73bbad24..b747fda77 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -990,7 +990,7 @@ Utilization of max. archive size: {csize_max:.0%} return 'source' not in item or not hardlinkable(item.mode) or item.source in hardlink_masters def is_hardlink_master(item): - return item.get('hardlink_master', True) and 'source' not in item + return item.get('hardlink_master', True) and 'source' not in item and hardlinkable(item.mode) def update_hardlink_masters(item1, item2): if is_hardlink_master(item1) or is_hardlink_master(item2):