aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/user.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/user.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-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.cpp12
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_)