]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: systemd-wrapper: fix locating of haproxy binary
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:34:34 +0000 (15:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:52:49 +0000 (15:52 +0200)
commite5eddafa89ee2e468da37938a002761e3f2126b4
tree534539c18b6bdbd9263a73c20e07e0f7b1158309
parente9187f8263ec1aa93379479c0454981746a543a8
BUG/MEDIUM: systemd-wrapper: fix locating of haproxy binary

OpenBSD complains this way due to strncat() :

src/haproxy-systemd-wrapper.o(.text+0xd5): In function `spawn_haproxy':
src/haproxy-systemd-wrapper.c:33: warning: strcat() is almost always misused, please use strlcat()

In fact, the code before strncat() here is wrong, because it may
dereference a NULL if /proc/self/exe is not readable. So fix it
and get rid of strncat() at the same time.

No backport is needed.
src/haproxy-systemd-wrapper.c