From 3b6e3b4020db7d4aac3323e5832b2cc65bcc7146 Mon Sep 17 00:00:00 2001 From: Patryk Czajka Date: Tue, 27 Aug 2024 15:52:32 +0200 Subject: [PATCH] WTF --- src/snowflake/cli/api/secure_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/snowflake/cli/api/secure_utils.py b/src/snowflake/cli/api/secure_utils.py index 4e93ce3fd6..0686745681 100644 --- a/src/snowflake/cli/api/secure_utils.py +++ b/src/snowflake/cli/api/secure_utils.py @@ -54,6 +54,11 @@ def windows_get_not_whitelisted_users_with_access(file_path: Path) -> List[str]: icacls_output_regex = r".*\\(?P.*):(?P[(A-Z),]+)" whitelisted_users = _get_windows_whitelisted_users() + import os + + log.warning("OS user: %s", os.getlogin()) + log.warning("icacls output: %s", _run_icacls(file_path)) + users_with_access = [] for permission in re.finditer(icacls_output_regex, _run_icacls(file_path)): if (permission.group("user") not in whitelisted_users) and (