Lines 388-394
enum {
Link Here
|
388 |
apache_get_userid () |
388 |
apache_get_userid () |
389 |
{ |
389 |
{ |
390 |
#ifdef HAVE_UNIXD |
390 |
#ifdef HAVE_UNIXD |
391 |
return unixd_config.user_id; |
391 |
#if defined(APACHE24) |
|
|
392 |
return ap_unixd_config.user_id; |
393 |
#else |
394 |
return unixd_config.user_id; |
395 |
#endif |
392 |
#else |
396 |
#else |
393 |
return ap_user_id; |
397 |
return ap_user_id; |
394 |
#endif |
398 |
#endif |
Lines 398-404
enum {
Link Here
|
398 |
apache_get_groupid () |
402 |
apache_get_groupid () |
399 |
{ |
403 |
{ |
400 |
#ifdef HAVE_UNIXD |
404 |
#ifdef HAVE_UNIXD |
401 |
return unixd_config.group_id; |
405 |
#if defined(APACHE24) |
|
|
406 |
return ap_unixd_config.user_id; |
407 |
#else |
408 |
return unixd_config.user_id; |
409 |
#endif |
402 |
#else |
410 |
#else |
403 |
return ap_group_id; |
411 |
return ap_group_id; |
404 |
#endif |
412 |
#endif |
Lines 408-414
enum {
Link Here
|
408 |
apache_get_username () |
416 |
apache_get_username () |
409 |
{ |
417 |
{ |
410 |
#ifdef HAVE_UNIXD |
418 |
#ifdef HAVE_UNIXD |
|
|
419 |
#if defined(APACHE24) |
420 |
return ap_unixd_config.user_name; |
421 |
#else |
411 |
return unixd_config.user_name; |
422 |
return unixd_config.user_name; |
|
|
423 |
#endif |
412 |
#else |
424 |
#else |
413 |
return ap_user_name; |
425 |
return ap_user_name; |
414 |
#endif |
426 |
#endif |
Lines 487-493
enum {
Link Here
|
487 |
|
499 |
|
488 |
#if defined (AP_NEED_SET_MUTEX_PERMS) && defined (HAVE_UNIXD) |
500 |
#if defined (AP_NEED_SET_MUTEX_PERMS) && defined (HAVE_UNIXD) |
489 |
DEBUG_PRINT (1, "Setting mutex permissions for %s", xsp->dashboard_lock_file); |
501 |
DEBUG_PRINT (1, "Setting mutex permissions for %s", xsp->dashboard_lock_file); |
490 |
rv = unixd_set_global_mutex_perms (xsp->dashboard_mutex); |
502 |
rv = ap_unixd_set_global_mutex_perms (xsp->dashboard_mutex); |
491 |
if (rv != APR_SUCCESS) { |
503 |
if (rv != APR_SUCCESS) { |
492 |
ap_log_error (APLOG_MARK, APLOG_CRIT, STATCODE_AND_SERVER (rv), |
504 |
ap_log_error (APLOG_MARK, APLOG_CRIT, STATCODE_AND_SERVER (rv), |
493 |
"Failed to set mutex permissions for %s", |
505 |
"Failed to set mutex permissions for %s", |
Lines 854-862
enum {
Link Here
|
854 |
#if defined(APACHE22) |
866 |
#if defined(APACHE22) |
855 |
return c->remote_addr->port; |
867 |
return c->remote_addr->port; |
856 |
#else |
868 |
#else |
|
|
869 |
#if defined(APACHE20) |
857 |
apr_port_t port; |
870 |
apr_port_t port; |
858 |
apr_sockaddr_port_get (&port, c->remote_addr); |
871 |
apr_sockaddr_port_get (&port, c->remote_addr); |
859 |
return port; |
872 |
return port; |
|
|
873 |
#else |
874 |
return c->client_addr->port; |
875 |
#endif |
860 |
#endif |
876 |
#endif |
861 |
|
877 |
|
862 |
} |
878 |
} |
Lines 867-875
enum {
Link Here
|
867 |
#if defined(APACHE22) |
883 |
#if defined(APACHE22) |
868 |
return r->connection->local_addr->port; |
884 |
return r->connection->local_addr->port; |
869 |
#else |
885 |
#else |
|
|
886 |
#if defined(APACHE20) |
870 |
apr_port_t port; |
887 |
apr_port_t port; |
871 |
apr_sockaddr_port_get (&port, r->connection->local_addr); |
888 |
apr_sockaddr_port_get (&port, r->connection->local_addr); |
872 |
return port; |
889 |
return port; |
|
|
890 |
#else |
891 |
return r->connection->local_addr->port; |
892 |
#endif |
873 |
#endif |
893 |
#endif |
874 |
} |
894 |
} |
875 |
|
895 |
|
Lines 1992-2000
enum {
Link Here
|
1992 |
size += info.local_ip_len + sizeof (int32_t); |
2012 |
size += info.local_ip_len + sizeof (int32_t); |
1993 |
|
2013 |
|
1994 |
size += sizeof (int32_t); |
2014 |
size += sizeof (int32_t); |
1995 |
|
2015 |
#if defined(APACHE24) |
1996 |
info.remote_ip_len = strlen (r->connection->remote_ip); |
2016 |
info.remote_ip_len = strlen (r->connection->client_ip); |
1997 |
size += info.remote_ip_len + sizeof (int32_t); |
2017 |
#else |
|
|
2018 |
info.remote_ip_len = strlen (r->connection->remote_ip); |
2019 |
#endif |
2020 |
size += info.remote_ip_len + sizeof (int32_t); |
1998 |
|
2021 |
|
1999 |
size += sizeof (int32_t); |
2022 |
size += sizeof (int32_t); |
2000 |
|
2023 |
|
Lines 2041-2047
enum {
Link Here
|
2041 |
i = LE_FROM_INT (i); |
2064 |
i = LE_FROM_INT (i); |
2042 |
memcpy (ptr, &i, sizeof (i)); |
2065 |
memcpy (ptr, &i, sizeof (i)); |
2043 |
ptr += sizeof (int32_t); |
2066 |
ptr += sizeof (int32_t); |
|
|
2067 |
#if defined(APACHE24) |
2068 |
ptr += write_string_to_buffer (ptr, 0, r->connection->client_ip, info.remote_ip_len); |
2069 |
#else |
2044 |
ptr += write_string_to_buffer (ptr, 0, r->connection->remote_ip, info.remote_ip_len); |
2070 |
ptr += write_string_to_buffer (ptr, 0, r->connection->remote_ip, info.remote_ip_len); |
|
|
2071 |
#endif |
2045 |
i = connection_get_remote_port (r->connection); |
2072 |
i = connection_get_remote_port (r->connection); |
2046 |
i = LE_FROM_INT (i); |
2073 |
i = LE_FROM_INT (i); |
2047 |
memcpy (ptr, &i, sizeof (i)); |
2074 |
memcpy (ptr, &i, sizeof (i)); |
2048 |
- |
|
|
2049 |
version < 2.4 |
2075 |
version < 2.4 |
2050 |
-- |
|
|
2051 |
src/mod_mono.c | 6 +++++- |
2076 |
src/mod_mono.c | 6 +++++- |
2052 |
1 file changed, 5 insertions(+), 1 deletion(-) |
2077 |
1 file changed, 5 insertions(+), 1 deletion(-) |