diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/execpath.cpp | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-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.cpp | 14 |
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_) |