From f65a4caf5263ff245dee40c74328baec5eda7c37 Mon Sep 17 00:00:00 2001 From: kouril Date: Tue, 6 Jan 2004 14:31:39 +0000 Subject: [PATCH] don't log automaticaly errno error messages --- src/mod_auth_kerb.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mod_auth_kerb.c b/src/mod_auth_kerb.c index b633e3f..3a26172 100644 --- a/src/mod_auth_kerb.c +++ b/src/mod_auth_kerb.c @@ -251,23 +251,17 @@ void log_rerror(const char *file, int line, int level, int status, const request_rec *r, const char *fmt, ...) { char errstr[1024]; - char errnostr[1024]; va_list ap; va_start(ap, fmt); vsnprintf(errstr, sizeof(errstr), fmt, ap); va_end(ap); - errnostr[0] = '\0'; - if (errno) - snprintf(errnostr, sizeof(errnostr), "%s: (%s)", errstr, strerror(errno)); - else - snprintf(errnostr, sizeof(errnostr), "%s", errstr); #ifdef APXS1 - ap_log_rerror(file, line, level | APLOG_NOERRNO, r, "%s", errnostr); + ap_log_rerror(file, line, level | APLOG_NOERRNO, r, "%s", errstr); #else - ap_log_rerror(file, line, level | APLOG_NOERRNO, status, r, "%s", errnostr); + ap_log_rerror(file, line, level | APLOG_NOERRNO, status, r, "%s", errstr); #endif } -- 2.1.4