add function __vprintf_chk() to make busybox help command happy
Works on busybox 1.27.2

the code was copied from an old musl post from Josiah Worcester:
http://www.openwall.com/lists/musl/2015/06/17/1

Signed-off-by: geraldo netto <geraldone...@gmail.com>
---
 libc/stdio/__vfprintf_chk.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libc/stdio/__vfprintf_chk.c b/libc/stdio/__vfprintf_chk.c
index 7341fc3..0fb6ff3 100644
--- a/libc/stdio/__vfprintf_chk.c
+++ b/libc/stdio/__vfprintf_chk.c
@@ -9,6 +9,12 @@ int __vfprintf_chk(FILE * f, int flag, const char *fmt, 
va_list ap)
     return vfprintf(f, fmt, ap);
 }
 
+// from http://www.openwall.com/lists/musl/2015/06/17/1
+int __vprintf_chk(int flag, const char *fmt, va_list ap)
+{
+       return vfprintf(stdout, fmt, ap);
+}
+
 int __printf_chk (int flag, const char *fmt, ...)
 {
     va_list args;
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to