diff options
author | aosipenko <aosipenko@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
commit | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch) | |
tree | 8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /util/folder/dirut.cpp | |
parent | d2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff) | |
download | ydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz |
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r-- | util/folder/dirut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp index ffc9b09f96..c05a54831a 100644 --- a/util/folder/dirut.cpp +++ b/util/folder/dirut.cpp @@ -459,7 +459,7 @@ TString GetHomeDir() { #ifndef _win32_ passwd* pw = nullptr; s = getenv("USER"); - if (s) + if (s) pw = getpwnam(s.data()); else pw = getpwuid(getuid()); @@ -517,7 +517,7 @@ TString GetSystemTempDir() { const char* var = "TMPDIR"; const char* def = "/tmp"; const char* r = getenv(var); - const char* result = r ? r : def; + const char* result = r ? r : def; return result[0] == '/' ? result : ResolveDir(result); #endif } |