aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/execpath.cpp
diff options
context:
space:
mode:
authorVasily Gerasimov <UgnineSirdis@gmail.com>2022-02-10 16:49:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:09 +0300
commit6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (patch)
treef69637041e6fed76ebae0c74ae1fa0c4be6ab5b4 /util/system/execpath.cpp
parente5d4696304c6689379ac7ce334512404d4b7836c (diff)
downloadydb-6cdc8f140213c595e4ad38bc3d97fcef1146b8c3.tar.gz
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/execpath.cpp')
-rw-r--r--util/system/execpath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/execpath.cpp b/util/system/execpath.cpp
index 33198af58b..1c91cd1902 100644
--- a/util/system/execpath.cpp
+++ b/util/system/execpath.cpp
@@ -64,7 +64,7 @@ static inline TString FreeBSDGetExecPath() {
* https://www.freebsd.org/cgi/man.cgi?query=procfs&sektion=5&format=html
*/
TString path("/proc/curproc/file");
- return NFs::ReadLink(path);
+ return NFs::ReadLink(path);
} else {
return TString();
}
@@ -129,7 +129,7 @@ static TString GetExecPathImpl() {
}
#elif defined(_linux_) || defined(_cygwin_)
TString path("/proc/self/exe");
- return NFs::ReadLink(path);
+ return NFs::ReadLink(path);
// TODO(yoda): check if the filename ends with " (deleted)"
#elif defined(_freebsd_)
TString execPath = FreeBSDGetExecPath();