fix symlinked filekeys

This commit is contained in:
ed 2022-09-16 21:41:17 +02:00
parent 17c465bed7
commit 0dbeb010cf

View file

@ -69,6 +69,7 @@ from .util import (
unescape_cookie, unescape_cookie,
unquote, unquote,
unquotep, unquotep,
vjoin,
vol_san, vol_san,
vsplit, vsplit,
yieldfile, yieldfile,
@ -2330,8 +2331,9 @@ class HttpCli(object):
if not is_dir and (self.can_read or self.can_get): if not is_dir and (self.can_read or self.can_get):
if not self.can_read and "fk" in vn.flags: if not self.can_read and "fk" in vn.flags:
vabs = vjoin(vn.realpath, rem)
correct = self.gen_fk( 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"]] )[: vn.flags["fk"]]
got = self.uparam.get("k") got = self.uparam.get("k")
if got != correct: if got != correct: