From 15f62bf08aebce142839fc3bf9cb205fb2a2e098 Mon Sep 17 00:00:00 2001 From: Mike P Date: Mon, 10 Nov 2025 15:59:05 +0000 Subject: [PATCH] Use octal for directory permissions --- ap/commands/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ap/commands/login.py b/ap/commands/login.py index d063c1a..517332f 100644 --- a/ap/commands/login.py +++ b/ap/commands/login.py @@ -58,7 +58,7 @@ def oauth_endpoints(self, json): def save_token(self, token): apdir = Path(self.env.get("HOME")) / ".ap" if not apdir.exists(): - apdir.mkdir(700) + apdir.mkdir(0o700) data = {"actor_id": self.actor_id, **token} with open(apdir / "token.json", "w") as f: f.write(json.dumps(data))