Signed-off-by: Ahmad Fatoum <a.fat...@barebox.org>
---
v1 -> v2:
  - new patch
---
 common/hush.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/hush.c b/common/hush.c
index 552e7327de92..21348c4b7510 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -113,6 +113,7 @@
 #include <getopt.h>
 #include <libfile.h>
 #include <magicvar.h>
+#include <structio.h>
 #include <linux/list.h>
 #include <binfmt.h>
 #include <init.h>
@@ -853,7 +854,7 @@ static int run_pipe_real(struct p_context *ctx, struct pipe 
*pi)
        } else {
                ret = execute_binfmt(globbuf.gl_pathc, globbuf.gl_pathv);
                if (ret < 0) {
-                       printf("%s: %pe\n", globbuf.gl_pathv[0], ERR_PTR(ret));
+                       stnoprintf("%s: %pe\n", globbuf.gl_pathv[0], 
ERR_PTR(ret));
                        ret = 127;
                }
        }
-- 
2.39.5


Reply via email to