]> git.ozlabs.org Git - petitboot/blobdiff - discover/paths.c
discover: we need stderr for the BusyBox TFTP type check
[petitboot] / discover / paths.c
index 64b218e820d2f06ec508584a7b4a2fddea0fc5b6..5e577ebc7baeee7b96871339acbb6279fcc3cb56 100644 (file)
@@ -1,4 +1,6 @@
-#define _GNU_SOURCE
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
 
 #include <assert.h>
 #include <string.h>
@@ -220,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) {