(fix a minor memory issue and a possible webserver crash ; some binaries have been renamed ie. cgi_wrapper => cgi-wrapper)
24 lines
808 B
Plaintext
24 lines
808 B
Plaintext
$OpenBSD: patch-serverconfig_c,v 1.2 2007/03/26 06:57:56 ajacoutot Exp $
|
|
--- serverconfig.c.orig Sat Feb 17 19:30:11 2007
|
|
+++ serverconfig.c Sat Feb 17 19:31:38 2007
|
|
@@ -13,7 +13,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
|
|
|
|
@@ -178,8 +178,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;
|
|
config->groups.number = 0;
|
|
config->groups.array = NULL;
|