mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
fix or complain about some invalid errno references
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@882269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -272,7 +272,6 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
|
||||
char *endstr;
|
||||
|
||||
ctx->state = BODY_LENGTH;
|
||||
errno = 0;
|
||||
|
||||
/* Protects against over/underflow, non-digit chars in the
|
||||
* string (excluding leading space) (the endstr checks)
|
||||
|
@@ -1145,7 +1145,7 @@ skip_body:
|
||||
}
|
||||
|
||||
if (rv != OK) {
|
||||
/* apr_errno value has been logged in lower level method */
|
||||
/* apr_status_t value has been logged in lower level method */
|
||||
ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
|
||||
"proxy: pass request body failed to %pI (%s)"
|
||||
" from %s (%s)",
|
||||
|
@@ -494,6 +494,7 @@ int ap_open_logs(apr_pool_t *pconf, apr_pool_t *p /* plog */,
|
||||
* because it points to the old error log, or back to the tty
|
||||
* of the submitter.
|
||||
* XXX: This is BS - /dev/null is non-portable
|
||||
* errno-as-apr_status_t is also non-portable
|
||||
*/
|
||||
if (replace_stderr && freopen("/dev/null", "w", stderr) == NULL) {
|
||||
ap_log_error(APLOG_MARK, APLOG_CRIT, errno, s_main,
|
||||
|
@@ -342,7 +342,7 @@ static int process_dir(char *path, apr_pool_t *pool)
|
||||
}
|
||||
}
|
||||
|
||||
/* this may look strange but apr_stat() may return errno which
|
||||
/* this may look strange but apr_stat() may return an error which
|
||||
* is system dependent and there may be transient failures,
|
||||
* so just blindly retry for a short while
|
||||
*/
|
||||
|
Reference in New Issue
Block a user