Skip to content

Commit 4a34e08

Browse files
committed
Try replicating the permissions used by mkdtemp
1 parent a2ef2a5 commit 4a34e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/core/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def ensure_cli_env() -> typing.Generator[None, None, None]:
4949
DEFAULT_PROMETHEUS_MULTIPROC_DIR,
5050
)
5151
shutil.rmtree(prometheus_multiproc_dir_name, ignore_errors=True)
52-
os.makedirs(prometheus_multiproc_dir_name, exist_ok=True, mode=0o777)
52+
os.makedirs(prometheus_multiproc_dir_name, exist_ok=True, mode=0o700)
5353
logger.info(
5454
"Re-created %s for Prometheus multi-process mode",
5555
prometheus_multiproc_dir_name,

0 commit comments

Comments
 (0)