]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker: execvp failure depending on argv[0]
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 9 Jan 2018 22:12:27 +0000 (23:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Jan 2018 22:44:18 +0000 (23:44 +0100)
commit29f690c94574666f0789af5254890c498011e2ed
tree159d12c8102b611b4cbac4970b8db9c65185829d
parent2ec2db9725fb54a76c726c5b8cc502071c575d28
BUG/MEDIUM: mworker: execvp failure depending on argv[0]

The copy_argv() function lacks a check on '-' to remove the -x, -sf and
-st parameters.

When reloading a master process with a path starting by /st, /sf, or
/x..  the copy_argv() function skipped argv[0] leading to an execvp()
without the binary.
src/haproxy.c