mirror of
https://github.com/9001/copyparty.git
synced 2025-11-04 22:03:21 +00:00
tftp: support unmapped root
This commit is contained in:
@@ -403,7 +403,7 @@ class Tftpd(object):
|
|||||||
bos.stat(ap)
|
bos.stat(ap)
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
return False
|
return vpath == "/"
|
||||||
|
|
||||||
def _p_isdir(self, vpath: str) -> bool:
|
def _p_isdir(self, vpath: str) -> bool:
|
||||||
try:
|
try:
|
||||||
@@ -411,7 +411,7 @@ class Tftpd(object):
|
|||||||
ret = stat.S_ISDIR(st.st_mode)
|
ret = stat.S_ISDIR(st.st_mode)
|
||||||
return ret
|
return ret
|
||||||
except:
|
except:
|
||||||
return False
|
return vpath == "/"
|
||||||
|
|
||||||
def _hook(self, *a: Any, **ka: Any) -> None:
|
def _hook(self, *a: Any, **ka: Any) -> None:
|
||||||
src = inspect.currentframe().f_back.f_code.co_name
|
src = inspect.currentframe().f_back.f_code.co_name
|
||||||
|
|||||||
Reference in New Issue
Block a user