From: David Carlier Date: Sat, 14 May 2022 16:15:49 +0000 (+0100) Subject: MINOR: tools: add get_exec_path implementation for solaris based systems. X-Git-Tag: v2.6-dev11~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7198c700bc1881c115062d9a4019b960ab0e0b57;p=thirdparty%2Fhaproxy.git MINOR: tools: add get_exec_path implementation for solaris based systems. We can use getexecname() which fetches AT_SUN_EXECNAME from the auxiliary vectors. --- diff --git a/src/tools.c b/src/tools.c index ed3c3a6671..c6bc81be91 100644 --- a/src/tools.c +++ b/src/tools.c @@ -4821,6 +4821,8 @@ const char *get_exec_path() break; } } +#elif defined(__sun) + ret = getexecname(); #endif return ret; }