openbsd-ports/www/hiawatha/patches/patch-serverconfig_c
ajacoutot 76d8a8d45b Update to hiawatha-6.17.1.
* Main configuration file httpd.conf renamed to hiawatha.conf.
* Several crash/bugfixes and improvements.
2009-09-22 09:29:25 +00:00

24 lines
823 B
Plaintext

$OpenBSD: patch-serverconfig_c,v 1.13 2009/09/22 09:29:25 ajacoutot Exp $
--- serverconfig.c.orig Wed Aug 19 11:45:11 2009
+++ serverconfig.c Tue Sep 22 11:08:50 2009
@@ -16,7 +16,7 @@
#include "libstr.h"
#include "libfs.h"
-#define ID_NOBODY 65534
+#define ID_HIAWATHA 579
#define MAX_LENGTH_CONFIGLINE 512
#define MAX_CACHE_SIZE 50
#define MAX_UPLOAD_SIZE 100
@@ -228,8 +228,8 @@ t_config *default_config(void) {
#endif
config->server_root = NULL;
- config->server_uid = (uid_t)ID_NOBODY;
- config->server_gid = (gid_t)ID_NOBODY;
+ config->server_uid = (uid_t)ID_HIAWATHA;
+ config->server_gid = (gid_t)ID_HIAWATHA;
config->server_string = "Hiawatha v"VERSION;
init_groups(&(config->groups));
#ifdef HAVE_SSL