fix: create explicit CODEX_HOME with secure permissions (#1380)

This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-05-23 21:45:12 -04:00
1 parent 90d5ca2cbb
commit 55cd78bce4
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -222,7 +222,7 @@ function prepareExplicitCodexHome(
}
try {
fs.mkdirSync(codexHome, { recursive: true });
fs.mkdirSync(codexHome, { mode: 0o700, recursive: true });
} catch (err) {
const error = err as NodeJS.ErrnoException;
if (error.code !== 'EEXIST') {