From 3c36727d077e270a4a6223f245a8f5b81afefa9c Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 19 Nov 2023 11:19:08 +0000 Subject: [PATCH] fix filekeys not appearing in up2k in world-writable vols --- copyparty/up2k.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 75ad2156..88598819 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -945,7 +945,7 @@ class Up2k(object): (oldcfg,) = c.fetchone() except: oldcfg = "" - + if oldcfg != vcfg: cur.execute("delete from kv where k = 'volcfg'") cur.execute("delete from dh") @@ -2659,7 +2659,12 @@ class Up2k(object): not ret["hash"] and "fk" in vfs.flags and not self.args.nw - and (cj["user"] in vfs.axs.uread or cj["user"] in vfs.axs.upget) + and ( + cj["user"] in vfs.axs.uread + or cj["user"] in vfs.axs.upget + or "*" in vfs.axs.uread + or "*" in vfs.axs.upget + ) ): alg = 2 if "fka" in vfs.flags else 1 ap = absreal(djoin(job["ptop"], job["prel"], job["name"]))