]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
qemu-helper-native: Correctly pass program name as argv[0]
authorJoshua Watt <JPEWhacker@gmail.com>
Wed, 16 Nov 2022 18:49:19 +0000 (12:49 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Nov 2022 08:28:49 +0000 (08:28 +0000)
commit6edf38add3c20c44efe0588e2815bb280d22e0c4
tree6918d6d5d92db66313c94f501dc5cd26fe96cf57
parent735ec126ec219c7cb89cb05b0e433201bb7f59eb
qemu-helper-native: Correctly pass program name as argv[0]

The previous version of this wasn't correctly passing the program name
as argv[0], and was also over-complicated anyway because argv[] is
guaranteed to be terminated with a NULL pointer, so it can be passed
directly to the execv'd process without needing to be copied.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper.c