aboutsummaryrefslogtreecommitdiff
path: root/templates/base
diff options
context:
space:
mode:
authorbibo38 <bibo38@users.noreply.github.com>2020-08-19 15:17:16 +0200
committerGitHub <noreply@github.com>2020-08-19 21:17:16 +0800
commit252d0fd9775e40b641e5edc6facb147741c3b217 (patch)
tree26e87a39a0ed4ba6a3bcadb2395f6cc5dc3751b0 /templates/base
parentd1caae3f79e137c3ca1d59dc827fcca519f5eede (diff)
osutil: use system API to get the username when env vars are empty (#6246)
As Golang supports getting usernames via the standard library, this function is now used to get the username if the environment variables are empty. Using the standard library as a fallback is intended to keep compability to existing implementations that rely on the environment variables dictating the current username.
Diffstat (limited to 'templates/base')
0 files changed, 0 insertions, 0 deletions