From e5c15e0d8ebec5db3098d68606e8e01d3558ab24 Mon Sep 17 00:00:00 2001 From: robs Date: Mon, 21 Oct 2002 23:54:24 +0000 Subject: [PATCH] have the get_server_xid fns return the main server's id under AP2 --- fcgi_util.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/fcgi_util.c b/fcgi_util.c index 179a9fb..5455182 100644 --- a/fcgi_util.c +++ b/fcgi_util.c @@ -1,5 +1,5 @@ /* - * $Id: fcgi_util.c,v 1.26 2002/09/22 16:53:13 robs Exp $ + * $Id: fcgi_util.c,v 1.27 2002/10/21 23:54:24 robs Exp $ */ #include "fcgi.h" @@ -11,15 +11,17 @@ #include #include #include +#include "unixd.h" #endif uid_t fcgi_util_get_server_uid(const server_rec * const s) { #ifdef APACHE2 - /* AP2TODO get the server's uid */ - return 0; + /* the main server's uid */ + return ap_user_id; #else + /* the vhost's uid */ return s->server_uid; #endif } @@ -28,9 +30,10 @@ uid_t fcgi_util_get_server_gid(const server_rec * const s) { #ifdef APACHE2 - /* AP2TODO get the server's gid */ - return 0; + /* the main server's gid */ + return ap_group_id; #else + /* the vhost's gid */ return s->server_gid; #endif } -- 2.11.4.GIT