search for: log_redirect_stderr_to

Displaying 5 results from an estimated 5 matches for "log_redirect_stderr_to".

2024 Apr 25
1
[PATCH] Enable ssh_config to set LogPath option (-E)
...* goes to stderr unless otherwise specified by -y or -E. */ - if (use_syslog && logfile != NULL) + if (use_syslog && options.log_path != NULL) fatal("Can't specify both -y and -E"); - if (logfile != NULL) - log_redirect_stderr_to(logfile); + if (options.log_path != NULL) + log_redirect_stderr_to(options.log_path); log_init(argv0, options.log_level == SYSLOG_LEVEL_NOT_SET ? SYSLOG_LEVEL_INFO : options.log_level, -- 2.39.2
2016 Mar 28
2
Is it possible to extend log message?
Hello folks, Is it possible to extend log message as large as PATH_MAX? Current length of message format including file path is small against linux PATH_MAX, 4096. diff --git a/log.c b/log.c index ad12930..95df4a9 100644 --- a/log.c +++ b/log.c @@ -359,7 +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) && defin...
2013 Dec 10
9
[Bug 2182] New: getopt(3) command-line arguments memleaks
...ns, when used more than once, are currently leaking memory. For instance: $ ssh -Elog1 -Elog2 -carcfour -caes128-ctr I've decided to remove the xstrdup call and used a simple assignment to optarg when specifying a log file, instead of freeing it previously, since it's only used once in log_redirect_stderr_to. -- You are receiving this mail because: You are watching the assignee of the bug.
2018 Nov 19
2
[PATCH] openssl-compat: Test for OpenSSL_add_all_algorithms before using.
OpenSSL 1.1.0 has deprecated this function. --- configure.ac | 1 + openbsd-compat/openssl-compat.c | 2 ++ openbsd-compat/openssl-compat.h | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 3f7fe2cd..db2aade8 100644 --- a/configure.ac +++ b/configure.ac @@ -2710,6 +2710,7 @@ if test "x$openssl" = "xyes" ; then ])
2019 Jan 21
4
[Regression] OpenSSH 7.7p1 no longer tests on NonStop Port
...ning tests. I was wondering whether this is expected behaviour and if so, how to get around it. The release otherwise seems to work, but I can't release it to my community without it passing regression tests. The error report is really early in the agent's stack trace: #0 0x700e84a0:0 in log_redirect_stderr_to ( logfile=0x8017e32 "/home/git/openssh-portable/regress/ssh.log") at /home/git/openssh-portable/log.c:378 #1 0x700504e0:0 in main (ac=2, av=<optimized out>) at /home/git/openssh-portable/ssh.c:1075 #2 0x7004a9c0:0 in _MAIN () at \ATOM.$RLSE.T8432ACH.CPLMAINC:52 This i...