Welcome! Log In Create A New Profile

Advanced

mworker: execvp failure depending on argv[0]

Posted by William Lallemand 
William Lallemand
mworker: execvp failure depending on argv[0]
January 09, 2018 11:40PM
That one can really make you crazy if you are in this exact case :-)


--
William Lallemand
Willy Tarreau
Re: mworker: execvp failure depending on argv[0]
January 09, 2018 11:50PM
On Tue, Jan 09, 2018 at 11:31:51PM +0100, William Lallemand wrote:
> From ce9920d284e55600ef324a322a3aed92dd2af02f Mon Sep 17 00:00:00 2001
> From: William Lallemand <[email protected]>
> Date: Tue, 9 Jan 2018 23:12:27 +0100
> Subject: [PATCH] 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.

Wow, I love these ones :-)

Now merged in 1.9 and 1.8, thanks!
Willy
Sorry, only registered users may post in this forum.

Click here to login