From 96f2e76ddb15acaa9f734f0f432cb663116d3b4a Mon Sep 17 00:00:00 2001 From: Ramesh Padmanabhaiah <22363102+codeforester@users.noreply.github.com> Date: Tue, 4 Aug 2026 17:04:15 -0700 Subject: [PATCH] Close atomic write symlink window --- lib/python/base_cli/_private_files.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/python/base_cli/_private_files.py b/lib/python/base_cli/_private_files.py index 605b946..2f1db5c 100644 --- a/lib/python/base_cli/_private_files.py +++ b/lib/python/base_cli/_private_files.py @@ -102,7 +102,6 @@ def write_private_json(path: Path, value: Mapping[str, Any]) -> None: temporary_name = None if parent_fd is not None: _sync_directory(parent_fd) - restrict_file(path) finally: if fd is not None: os.close(fd)