From cedfc444206d72d4ee68ccfaf202c2333465ace2 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 30 Nov 2025 20:06:56 +0000 Subject: [PATCH] panic if --shr overlaps with volumes --- copyparty/authsrv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index eb853b52..263912d9 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -3131,7 +3131,10 @@ class AuthSrv(object): self.log("BUG: /%s not in all_nodes" % (vol.vpath,), 1) vols.append(vol) if shr in vfs.all_nodes: - self.log("BUG: %s found in all_nodes" % (shr,), 1) + t = "invalid config: a volume is overlapping with the --shr global-option (/%s)" + t = t % (shr,) + self.log(t, 1) + raise Exception(t) for vol in vols: dbv = vol.get_dbv("")[0]