summaryrefslogtreecommitdiff
path: root/kvmd/validators/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/validators/os.py')
-rw-r--r--kvmd/validators/os.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/kvmd/validators/os.py b/kvmd/validators/os.py
index 97aabdf0..702984c5 100644
--- a/kvmd/validators/os.py
+++ b/kvmd/validators/os.py
@@ -78,7 +78,12 @@ def valid_printable_filename(arg: Any, name: str="") -> str:
arg = valid_stripped_string_not_empty(arg, name)
- if "/" in arg or "\0" in arg or arg in [".", ".."]:
+ if (
+ "/" in arg
+ or "\0" in arg
+ or arg.startswith(".")
+ or arg == "lost+found"
+ ):
raise_error(arg, name)
arg = "".join(