Browse Source

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 years ago
parent
commit
c343673ab5
1 changed files with 1 additions and 1 deletions
  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)