diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/user.cpp | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/user.cpp')
-rw-r--r-- | util/system/user.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/user.cpp b/util/system/user.cpp index e730f621cd..83e89ea0a8 100644 --- a/util/system/user.cpp +++ b/util/system/user.cpp @@ -1,7 +1,7 @@ #include "user.h" #include "platform.h" #include "defaults.h" -#include "env.h" +#include "env.h" #include <util/generic/yexception.h> @@ -14,13 +14,13 @@ #endif TString GetUsername() { - for (const auto& var : {"LOGNAME", "USER", "LNAME", "USERNAME"}) { - TString val = GetEnv(var); + for (const auto& var : {"LOGNAME", "USER", "LNAME", "USERNAME"}) { + TString val = GetEnv(var); if (val) { - return val; + return val; } - } - + } + TTempBuf nameBuf; for (;;) { #if defined(_win_) |