mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
dont hardlink symlinks (they could be relative)
This commit is contained in:
parent
b985011a00
commit
e64b87b99b
|
@ -2564,7 +2564,7 @@ class Up2k(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if "hardlink" in flags:
|
if "hardlink" in flags:
|
||||||
os.link(fsenc(src), fsenc(dst))
|
os.link(fsenc(absreal(src)), fsenc(dst))
|
||||||
linked = True
|
linked = True
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self.log("cannot hardlink: " + repr(ex))
|
self.log("cannot hardlink: " + repr(ex))
|
||||||
|
|
Loading…
Reference in a new issue