diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /util/system/execpath.cpp | |
parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
download | ydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/execpath.cpp')
-rw-r--r-- | util/system/execpath.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/execpath.cpp b/util/system/execpath.cpp index 33198af58b..5692f23959 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_) |