show_hist: shadowing gave false-positive

This commit is contained in:
ed 2026-07-09 20:16:29 +00:00
parent 29e145f5e4
commit 12878e6c1c

View file

@ -2806,6 +2806,7 @@ class AuthSrv(object):
zs = "select %s from up where rd=? and fn=?" % (", ".join(up_q),) zs = "select %s from up where rd=? and fn=?" % (", ".join(up_q),)
vol.flags["ls_q_m"] = (zs if up_m else "", up_m) vol.flags["ls_q_m"] = (zs if up_m else "", up_m)
zltss = [] # recheck
for vn1 in vfs.all_nodes.values(): for vn1 in vfs.all_nodes.values():
if "show_hist" in vn1.flags or not vn1.realpath: if "show_hist" in vn1.flags or not vn1.realpath:
continue continue
@ -2823,10 +2824,15 @@ class AuthSrv(object):
continue continue
zs = hap[len(apS) :] zs = hap[len(apS) :]
if "/" in zs: if "/" in zs:
t = "note: /%s/%s gives access to %s" zltss.append((vjoin(vn1.vpath, zs), hap))
self.log(t % (vn2.vpath, zs, hap), 3)
else: else:
vn1.add("", zs, zs) vn1.add("", zs, zs)
for vp, hap in zltss:
zss = vfs.get(vp, "", False, False)[0].axs.uget
if zss:
t = "note: /%s gives access to %r for %s"
self.log(t % (vp, hap, zss), 3)
zltss[:] = []
vfs.all_fvols = { vfs.all_fvols = {
zs: vol for zs, vol in vfs.all_vols.items() if "is_file" in vol.flags zs: vol for zs, vol in vfs.all_vols.items() if "is_file" in vol.flags