remove extra anon-rw warning

This commit is contained in:
ed 2021-02-03 00:17:12 +01:00
parent 322b9abadc
commit a039fae1a4
2 changed files with 4 additions and 5 deletions

View file

@ -130,11 +130,10 @@ class VFS(object):
class AuthSrv(object):
"""verifies users against given paths"""
def __init__(self, args, log_func):
self.log_func = log_func
def __init__(self, args, log_func, warn_anonwrite=True):
self.args = args
self.warn_anonwrite = True
self.log_func = log_func
self.warn_anonwrite = warn_anonwrite
if WINDOWS:
self.re_vol = re.compile(r"^([a-zA-Z]:[\\/][^:]*|[^:]*):([^:]*):(.*)$")

View file

@ -40,7 +40,7 @@ class SvcHub(object):
self.up2k = Up2k(self)
if self.args.e2d and self.args.e2s:
auth = AuthSrv(self.args, self.log)
auth = AuthSrv(self.args, self.log, False)
self.up2k.build_indexes(auth.all_writable)
# decide which worker impl to use