search for: have_openlog_r

Displaying 6 results from an estimated 6 matches for "have_openlog_r".

Did you mean: have_openlog_h
2016 Mar 28
2
Is it possible to extend log message?
...+359,7 @@ log_redirect_stderr_to(const char *logfile) log_stderr_fd = fd; } -#define MSGBUFSIZ 1024 +#define MSGBUFSIZ 5192 void set_log_handler(log_handler_fn *handler, void *ctx) @@ -448,11 +448,11 @@ do_log(LogLevel level, const char *fmt, va_list args) } else { #if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT) openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sd - syslog_r(pri, &sdata, "%.500s", fmtbuf); + syslog_r(pri, &sdata, "%s", fmtbuf); closelog_r(&sdata)...
2015 Jul 06
3
[PATCH v2 1/1] paint visual host key with unicode box-drawing characters
...buf, log_handler_ctx); log_handler = tmp_handler; } else if (log_on_stderr) { - snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf); + /* we want unicode multi byte characters, so do not use fmtbuf here */ (void)write(log_stderr_fd, msgbuf, strlen(msgbuf)); } else { #if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT) diff --git a/sshkey.c b/sshkey.c index cfe5980..326bc29 100644 --- a/sshkey.c +++ b/sshkey.c @@ -44,6 +44,9 @@ #include <stdio.h> #include <string.h> #include <resolv.h> +#ifdef HAVE_LOCALE_H +#include <locale.h> +#endif /* HAVE_LOCAL...
2015 Jul 06
2
[PATCH 1/1] paint visual host key with unicode box-drawing characters
Le 06/07/15 12:33, Alex Bligh a ?crit : > On 6 Jul 2015, at 11:05, Christian Hesse <list at eworm.de> wrote: > >> +#ifdef HAVE_LOCALE_H >> + char *locale; >> + char *border_utf8[] = { "?", "?", "?", "?", "?", "?" }; >> +#endif >> + char *border_ascii[] = { "+", "-",
2005 Sep 19
1
ssh hangs or gives Segmentation fault
.../ #define HAVE_MEMMOVE 1 #define HAVE_MEMORY_H 1 #define HAVE_MKDTEMP 1 #define HAVE_MMAP 1 /* #undef HAVE_NDIR_H */ #define HAVE_NETDB_H 1 /* #undef HAVE_NETGROUP_H */ #define HAVE_NETINET_IN_SYSTM_H 1 /* #undef HAVE_NGETADDRINFO */ /* #undef HAVE_NSLEEP */ /* #undef HAVE_OGETADDRINFO */ /* #undef HAVE_OPENLOG_R */ #define HAVE_OPENPTY 1 /* #undef HAVE_PAM_GETENVLIST */ /* #undef HAVE_PAM_PAM_APPL_H */ /* #undef HAVE_PAM_PUTENV */ #define HAVE_PATHS_H 1 #define HAVE_PRCTL 1 /* #undef HAVE_PSTAT */ #define HAVE_PTY_H 1 #define HAVE_PUTUTLINE 1 #define HAVE_PUTUTXLINE 1 /* #undef HAVE_READPASSPHRASE */ /* #u...
2011 Jun 02
2
preauth privsep logging via monitor
...handler, void *ctx) +{ + log_handler = handler; + log_handler_ctx = ctx; +} + +void +do_log2(LogLevel level, const char *fmt,...) +{ + va_list args; + + va_start(args, fmt); + do_log(level, fmt, args); + va_end(args); +} + +void do_log(LogLevel level, const char *fmt, va_list args) { #if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT) @@ -337,6 +359,7 @@ do_log(LogLevel level, const char *fmt, char *txt = NULL; int pri = LOG_INFO; int saved_errno = errno; + log_handler_fn *tmp_handler; if (level > log_level) return; @@ -375,7 +398,7 @@ do_log(LogLevel level, const char *fmt,...
2015 Jul 06
7
[PATCH 1/1] paint visual host key with unicode box-drawing characters
From: Christian Hesse <mail at eworm.de> Signed-off-by: Christian Hesse <mail at eworm.de> --- sshkey.c | 47 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/sshkey.c b/sshkey.c index cfe5980..47511c2 100644 --- a/sshkey.c +++ b/sshkey.c @@ -44,6 +44,9 @@ #include <stdio.h> #include <string.h> #include