From: Jeremy Kerr Date: Tue, 14 Jan 2014 07:58:31 +0000 (+0800) Subject: discover: we need stderr for the BusyBox TFTP type check X-Git-Tag: v1.0.0~273 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=49f515d354d8d40e2053fe5806fea12b06bcb115;hp=33527e065d9506e05f61c020a473544123c0601b discover: we need stderr for the BusyBox TFTP type check Busybox tftp doesn't support -V, so prints an error to stderr. We'll only see the Busybox identifier if we capture stderr too. Signed-off-by: Jeremy Kerr --- diff --git a/discover/paths.c b/discover/paths.c index 0c8cc8b..5e577eb 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -222,6 +222,7 @@ static enum tftp_type check_tftp_type(void *ctx) process->path = pb_system_apps.tftp; process->argv = argv; process->keep_stdout = true; + process->add_stderr = true; process_run_sync(process); if (!process->stdout_buf || process->stdout_len == 0) {