aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/execpath.cpp
diff options
context:
space:
mode:
authorVasily Gerasimov <UgnineSirdis@gmail.com>2022-02-10 16:49:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:10 +0300
commit1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/execpath.cpp
parent6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff)
downloadydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 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 1c91cd19020..33198af58b0 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();