From a375ef9d1e86582c35ccaced0ac87e83a2a14204 Mon Sep 17 00:00:00 2001 From: agent Date: Sat, 31 Oct 2026 01:23:18 -0400 Subject: [PATCH 1/3] wallet_child: name argv[0] in spawn errors and pre-flight the RPC bin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Android report was `spawn monero-wallet-rpc: No such file or directory (os error 2)` — the label, not the argv[0] that failed, so a bare name and an absolute jniLibs path read identically. - spawn() now prints the label and argv[0]: `spawn monero-wallet-rpc (/data/app/.../libmonerowalletrpc.so): ...`, errno verbatim. - check_wallet_rpc_bin() pre-flights the resolved bin before anything is spawned: not found / not a file / not executable, with the configured path in the message. No PATH search, no fallback. - A bare wallet_rpc_bin is refused where a child has no PATH to resolve it (cfg(target_os = "android")), in ChildConfig::validate() and in the start-path pre-flight. Desktop keeps the bare-name default. - Tests for each refusal and for the argv[0] error; the node test that asserted the old `spawn` copy now asserts the path. --- src/node.rs | 5 +- src/wallet_child.rs | 205 ++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 201 insertions(+), 9 deletions(-) diff --git a/src/node.rs b/src/node.rs index 86b6412..16efa37 100644 --- a/src/node.rs +++ b/src/node.rs @@ -4347,7 +4347,10 @@ pub(crate) mod tests { let err = node .start_wallet_child() .expect_err("a missing binary fails"); - assert!(err.contains("spawn"), "{err}"); + // The refusal names the configured path: the old `spawn