aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/mktemp.cpp
diff options
context:
space:
mode:
authorsomov <somov@yandex-team.ru>2022-02-10 16:45:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:49 +0300
commit7489e4682331202b9c7d863c0898eb83d7b12c2b (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /util/system/mktemp.cpp
parenta5950576e397b1909261050b8c7da16db58f10b1 (diff)
downloadydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/mktemp.cpp')
-rw-r--r--util/system/mktemp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/mktemp.cpp b/util/system/mktemp.cpp
index ab993d5f43..505b7b4a4b 100644
--- a/util/system/mktemp.cpp
+++ b/util/system/mktemp.cpp
@@ -1,7 +1,7 @@
#include "tempfile.h"
-#include <util/folder/dirut.h>
-#include <util/generic/yexception.h>
+#include <util/folder/dirut.h>
+#include <util/generic/yexception.h>
#include <util/stream/file.h>
#include <cerrno>
@@ -21,11 +21,11 @@ TString MakeTempName(const char* wrkDir, const char* prefix, const char* extensi
#ifndef _win32_
TString filePath;
- if (wrkDir && *wrkDir) {
+ if (wrkDir && *wrkDir) {
filePath += wrkDir;
- } else {
+ } else {
filePath += GetSystemTempDir();
- }
+ }
if (filePath.back() != '/') {
filePath += '/';