Improve wording of comment

This commit is contained in:
Ben Mares
2022-02-03 19:11:33 +01:00
parent 8d51336cfd
commit c2b0311331

View File

@@ -190,10 +190,11 @@ if [ "$(id -u)" == 0 ] ; then
# used `env_delete` from /etc/sudoers. It has higher priority than the
# `--preserve-env` flag and the `env_keep` configuration.
#
# - We preserve PATH and PYTHONPATH explicitly. Note however that PATH is
# irrelevant to how the above sudo command resolves the path of `${cmd[@]}`.
# Sudo uses the "secure_path" variable we modified above in
# /etc/sudoers.d/path. (PATH is useful e.g. when `${cmd[@]}` is `bash`.)
# - We preserve PATH and PYTHONPATH explicitly. Note however that sudo
# resolves `${cmd[@]}` using the "secure_path" variable we modified
# above in /etc/sudoers.d/path. Thus PATH is irrelevant to how the above
# sudo command resolves the path of `${cmd[@]}`. The PATH will be relevant
# for resolving paths of any subprocesses spawned by `${cmd[@]}`.
# The container didn't start as the root user, so we will have to act as the
# user we started as.