From: kouril Date: Tue, 6 Jan 2004 14:31:39 +0000 (+0000) Subject: don't log automaticaly errno error messages X-Git-Tag: v5.0-rc4~8 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_kerb.git;a=commitdiff_plain;h=f65a4caf5263ff245dee40c74328baec5eda7c37 don't log automaticaly errno error messages --- 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 }