Instead of silently failing and claiming that the signature verification
failed, print out the error status when the initial fork() call fails.
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=1999
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
return 0;
pid = fork();
- if (pid < 0)
+ if (pid < 0) {
+ opkg_perror(ERROR, "Failed to fork opkg-key process");
return -1;
+ }
if (!pid) {
execl("/usr/sbin/opkg-key", "opkg-key", "verify", sig_file,