]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/: Use _exit in case of execv errors
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 6 Jan 2025 16:18:43 +0000 (17:18 +0100)
committerAlejandro Colomar <alx@kernel.org>
Fri, 10 Jan 2025 09:23:57 +0000 (10:23 +0100)
commita772484f00eae0f8a4d5e73f23b36c50445c3c51
tree4650400df42d3281b8382c06801e3e067d3ef559
parentf2b5eb1274efa562da859b0ba54141885f44d87c
lib/: Use _exit in case of execv errors

Calling exit might trigger cleanup functions registered through
atexit. Since some programs use this mechanism, be extra cautious to
never release passwd/group locks too early.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/run_part.c
lib/spawn.c