fix(auth): enforce mode 0700 on config dir mkdir to match docstring
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ from pathlib import Path
|
|||||||
def _config_dir() -> Path:
|
def _config_dir() -> Path:
|
||||||
"""Return ~/.config/muxplex, creating it (mode 0700) if needed."""
|
"""Return ~/.config/muxplex, creating it (mode 0700) if needed."""
|
||||||
d = Path.home() / ".config" / "muxplex"
|
d = Path.home() / ".config" / "muxplex"
|
||||||
d.mkdir(parents=True, exist_ok=True)
|
d.mkdir(mode=0o700, parents=True, exist_ok=True)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user