httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r711227 - /httpd/httpd/trunk/modules/arch/unix/mod_unixd.c
Date Tue, 04 Nov 2008 11:35:22 GMT
Author: rpluem
Date: Tue Nov  4 03:35:21 2008
New Revision: 711227

URL: http://svn.apache.org/viewvc?rev=711227&view=rev
Log:
* Move code to a more conveniant place

Modified:
    httpd/httpd/trunk/modules/arch/unix/mod_unixd.c

Modified: httpd/httpd/trunk/modules/arch/unix/mod_unixd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/unix/mod_unixd.c?rev=711227&r1=711226&r2=711227&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/unix/mod_unixd.c (original)
+++ httpd/httpd/trunk/modules/arch/unix/mod_unixd.c Tue Nov  4 03:35:21 2008
@@ -297,35 +297,6 @@
     return OK;
 }
 
-static void unixd_hooks(apr_pool_t *pool)
-{
-    ap_hook_pre_config(unixd_pre_config,
-                       NULL, NULL, APR_HOOK_FIRST);
-
-    ap_hook_drop_privileges(unixd_drop_privileges,
-                            NULL, NULL, APR_HOOK_FIRST);
-}
-
-static const command_rec unixd_cmds[] = {
-    AP_INIT_TAKE1("User", unixd_set_user, NULL, RSRC_CONF,
-                  "Effective user id for this server"),
-    AP_INIT_TAKE1("Group", unixd_set_group, NULL, RSRC_CONF,
-                  "Effective group id for this server"),
-    AP_INIT_TAKE1("ChrootDir", unixd_set_chroot_dir, NULL, RSRC_CONF,
-                  "The directory to chroot(2) into"),
-    {NULL}
-};
-
-module AP_MODULE_DECLARE_DATA unixd_module = {
-    STANDARD20_MODULE_STUFF,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    unixd_cmds,
-    unixd_hooks
-};
-
 AP_DECLARE(int) unixd_setup_child(void)
 {
     if (set_group_privs()) {
@@ -396,3 +367,32 @@
     return 0;
 }
 
+static void unixd_hooks(apr_pool_t *pool)
+{
+    ap_hook_pre_config(unixd_pre_config,
+                       NULL, NULL, APR_HOOK_FIRST);
+
+    ap_hook_drop_privileges(unixd_drop_privileges,
+                            NULL, NULL, APR_HOOK_FIRST);
+}
+
+static const command_rec unixd_cmds[] = {
+    AP_INIT_TAKE1("User", unixd_set_user, NULL, RSRC_CONF,
+                  "Effective user id for this server"),
+    AP_INIT_TAKE1("Group", unixd_set_group, NULL, RSRC_CONF,
+                  "Effective group id for this server"),
+    AP_INIT_TAKE1("ChrootDir", unixd_set_chroot_dir, NULL, RSRC_CONF,
+                  "The directory to chroot(2) into"),
+    {NULL}
+};
+
+module AP_MODULE_DECLARE_DATA unixd_module = {
+    STANDARD20_MODULE_STUFF,
+    NULL,
+    NULL,
+    NULL,
+    NULL,
+    unixd_cmds,
+    unixd_hooks
+};
+



Mime
View raw message