mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
fix ?tar on xvol reject;
would panic and kill the connection instead of just skipping the blocked symlink
This commit is contained in:
parent
cc5420a324
commit
c7b80acd0d
|
|
@ -627,6 +627,9 @@ class VFS(object):
|
||||||
t = "%s has no %s in %r => %r => %r"
|
t = "%s has no %s in %r => %r => %r"
|
||||||
self.log("vfs", t % (uname, msg, vpath, cvpath, ap), 6)
|
self.log("vfs", t % (uname, msg, vpath, cvpath, ap), 6)
|
||||||
|
|
||||||
|
if not err:
|
||||||
|
return None
|
||||||
|
|
||||||
t = "you don't have %s-access in %r or below %r"
|
t = "you don't have %s-access in %r or below %r"
|
||||||
raise Pebkac(err, t % (msg, "/" + cvpath, "/" + vn.vpath))
|
raise Pebkac(err, t % (msg, "/" + cvpath, "/" + vn.vpath))
|
||||||
|
|
||||||
|
|
@ -858,7 +861,7 @@ class VFS(object):
|
||||||
for le in vfs_ls:
|
for le in vfs_ls:
|
||||||
ap = absreal(os.path.join(fsroot, le[0]))
|
ap = absreal(os.path.join(fsroot, le[0]))
|
||||||
vn2 = self.chk_ap(ap)
|
vn2 = self.chk_ap(ap)
|
||||||
if not vn2 or not vn2.get("", uname, True, False):
|
if not vn2 or not vn2.get("", uname, True, False, err=0):
|
||||||
rm1.append(le)
|
rm1.append(le)
|
||||||
_ = [vfs_ls.remove(x) for x in rm1] # type: ignore
|
_ = [vfs_ls.remove(x) for x in rm1] # type: ignore
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue