]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tools: add get_exec_path implementation for solaris based systems.
authorDavid Carlier <devnexen@gmail.com>
Sat, 14 May 2022 16:15:49 +0000 (17:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 May 2022 09:44:21 +0000 (11:44 +0200)
We can use getexecname() which fetches AT_SUN_EXECNAME from the auxiliary
vectors.

src/tools.c

index ed3c3a667107be3ccd29ea4750626ef599e48e00..c6bc81be91193625f0c1b6aa55a6ece225134362 100644 (file)
@@ -4821,6 +4821,8 @@ const char *get_exec_path()
                        break;
                }
        }
+#elif defined(__sun)
+       ret = getexecname();
 #endif
        return ret;
 }