aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/execpath.cpp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/execpath.cpp
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/execpath.cpp')
-rw-r--r--util/system/execpath.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/execpath.cpp b/util/system/execpath.cpp
index 5692f23959..33198af58b 100644
--- a/util/system/execpath.cpp
+++ b/util/system/execpath.cpp
@@ -58,12 +58,12 @@ static inline TString FreeBSDGetExecPath() {
if (r == 0) {
return TString(buf.Data(), buf.Filled() - 1);
} else if (r == ENOTSUP) { // older FreeBSD version
- /*
- * BSD analogue for /proc/self is /proc/curproc.
- * See:
- * https://www.freebsd.org/cgi/man.cgi?query=procfs&sektion=5&format=html
- */
- TString path("/proc/curproc/file");
+ /*
+ * BSD analogue for /proc/self is /proc/curproc.
+ * See:
+ * https://www.freebsd.org/cgi/man.cgi?query=procfs&sektion=5&format=html
+ */
+ TString path("/proc/curproc/file");
return NFs::ReadLink(path);
} else {
return TString();
@@ -128,7 +128,7 @@ static TString GetExecPathImpl() {
}
}
#elif defined(_linux_) || defined(_cygwin_)
- TString path("/proc/self/exe");
+ TString path("/proc/self/exe");
return NFs::ReadLink(path);
// TODO(yoda): check if the filename ends with " (deleted)"
#elif defined(_freebsd_)