Explorar o código

Decode hardlink source path before linking

Jonas Borgström %!s(int64=14) %!d(string=hai) anos
pai
achega
650bd69da5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      darc/archive.py

+ 1 - 1
darc/archive.py

@@ -152,7 +152,7 @@ class Archive(object):
                 os.makedirs(os.path.dirname(path))
             # Hard link?
             if 'source' in item:
-                source = os.path.join(dest, item['source'])
+                source = os.path.join(dest, item['source'].decode('utf-8'))
                 if os.path.exists(path):
                     os.unlink(path)
                 os.link(source, path)