openbsd-ports/www/hiawatha/patches/patch-serverconfig_c
rpointel 498a61cceb update hiawatha to 7.4.1.
Changelog : http://www.hiawatha-webserver.org/changelog.

Added rc script.

Diff from me and modify by ajacoutot@. ok ajacoutot@.
2011-04-13 17:44:59 +00:00

24 lines
833 B
Plaintext

$OpenBSD: patch-serverconfig_c,v 1.15 2011/04/13 17:44:59 rpointel Exp $
--- serverconfig.c.orig Tue Nov 2 17:15:29 2010
+++ serverconfig.c Wed Apr 13 16:47:17 2011
@@ -28,7 +28,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
@@ -244,8 +244,8 @@ t_config *default_config(void) {
#ifdef HAVE_CHROOT
config->server_root = NULL;
#endif
- 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