浏览代码

bugfix: do no assume hardlink_master=True if not present, see #7175

this would produce unneeded item.hlid attributes
for fifos, char and block devices when transferring /
upgrading from faulty borg 1.x archives.
Thomas Waldmann 2 年之前
父节点
当前提交
c343673ab5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/helpers/fs.py

+ 1 - 1
src/borg/helpers/fs.py

@@ -202,7 +202,7 @@ class HardLinkManager:
         return stat.S_ISREG(mode) or stat.S_ISBLK(mode) or stat.S_ISCHR(mode) or stat.S_ISFIFO(mode)
 
     def borg1_hardlink_master(self, item):  # legacy
-        return item.get("hardlink_master", True) and "source" not in item and self.borg1_hardlinkable(item.mode)
+        return item.get("hardlink_master", False) and "source" not in item and self.borg1_hardlinkable(item.mode)
 
     def borg1_hardlink_slave(self, item):  # legacy
         return "source" in item and self.borg1_hardlinkable(item.mode)