From 0dbeb010cfc1bf9b8bd2d4df87533711aebf0a6c Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 16 Sep 2022 21:41:17 +0200 Subject: [PATCH] fix symlinked filekeys --- copyparty/httpcli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 5ff828db..24eebeb8 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -69,6 +69,7 @@ from .util import ( unescape_cookie, unquote, unquotep, + vjoin, vol_san, vsplit, yieldfile, @@ -2330,8 +2331,9 @@ class HttpCli(object): if not is_dir and (self.can_read or self.can_get): if not self.can_read and "fk" in vn.flags: + vabs = vjoin(vn.realpath, rem) correct = self.gen_fk( - self.args.fk_salt, abspath, st.st_size, 0 if ANYWIN else st.st_ino + self.args.fk_salt, vabs, st.st_size, 0 if ANYWIN else st.st_ino )[: vn.flags["fk"]] got = self.uparam.get("k") if got != correct: