瀏覽代碼

Decode hardlink source path before linking

Jonas Borgström 14 年之前
父節點
當前提交
650bd69da5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)