From e64b87b99b70f77419768a1adde9da9b3e613f7d Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 12 May 2023 20:41:09 +0000 Subject: [PATCH] dont hardlink symlinks (they could be relative) --- copyparty/up2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 604f057f..97df5851 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -2564,7 +2564,7 @@ class Up2k(object): try: if "hardlink" in flags: - os.link(fsenc(src), fsenc(dst)) + os.link(fsenc(absreal(src)), fsenc(dst)) linked = True except Exception as ex: self.log("cannot hardlink: " + repr(ex))