diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-01-14 15:58:31 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-14 15:58:31 +0800 |
commit | 49f515d354d8d40e2053fe5806fea12b06bcb115 (patch) | |
tree | d1843a51f25534b533e5ce707cc30f1f233c214f /discover/paths.c | |
parent | 33527e065d9506e05f61c020a473544123c0601b (diff) | |
download | talos-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.c | 1 |
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) { |