Taragolis commented on code in PR #38164:
URL: https://github.com/apache/airflow/pull/38164#discussion_r1525569196
##########
airflow/utils/log/file_task_handler.py:
##########
@@ -168,6 +168,11 @@ def _change_directory_permissions_up(directory: Path,
folder_permissions: int):
:param directory: directory to change permissions of (including parents)
:param folder_permissions: permissions to set
"""
+ if directory.resolve() == Path.home().resolve():
Review Comment:
Maybe check if the user is a root `os.geteuid() == 0` and do nothing, except
maybe huge banner that do not run under the root.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]