summaryrefslogtreecommitdiffstats
path: root/discover/paths.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-14 15:58:31 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-14 15:58:31 +0800
commit49f515d354d8d40e2053fe5806fea12b06bcb115 (patch)
treed1843a51f25534b533e5ce707cc30f1f233c214f /discover/paths.c
parent33527e065d9506e05f61c020a473544123c0601b (diff)
downloadtalos-petitboot-49f515d354d8d40e2053fe5806fea12b06bcb115.tar.gz
talos-petitboot-49f515d354d8d40e2053fe5806fea12b06bcb115.zip
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 <jk@ozlabs.org>
Diffstat (limited to 'discover/paths.c')
-rw-r--r--discover/paths.c1
1 files changed, 1 insertions, 0 deletions
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) {
OpenPOWER on IntegriCloud