libopkg: use xsystem() to spawn opkg-key
authorJo-Philipp Wich <jo@mein.io>
Sun, 3 May 2020 16:01:57 +0000 (18:01 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 3 May 2020 16:19:35 +0000 (18:19 +0200)
commitb6f196764a30e75f4667ac68ad92c001dce19e91
treef8f79f26a77da933b1aaeda251d0208b517c4af5
parent60b9af29ae864d5af034b31058cb40d2c3271549
libopkg: use xsystem() to spawn opkg-key

Instead of the custom fork()/exec() implementation, use the existing
xsystem() helper function which provides a number of benefits:

 - It readily provides error reporting in case the execution fails
 - It has a simpler api
 - It uses vfork() internally which avoids the need to copy pages

This likely fixes https://bugs.openwrt.org/index.php?do=details&task_id=2734.

Fixes: 71f02a3 ("libopkg: add support for signature checking through usign")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/opkg_download.c