Commit 5b143a62 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #434 from jhnwkmn/no-user

Added MONGOOSE_NO_USER configuration define.
parents d244a7fd 8a7d535d
......@@ -151,6 +151,8 @@ all Net Skeleton functions will be available too.
-DMONGOOSE_NO_LOGGING Disable access/error logging
-DMONGOOSE_NO_THREADS
-DMONGOOSE_NO_WEBSOCKET Disable WebSocket support
-DMONGOOSE_NO_USER No concept of a user on used platform.
(Platform does not provide getpwnam, setgid or setuid)
-DMONGOOSE_USE_IDLE_TIMEOUT_SECONDS=X Idle connection timeout, default is 30
-DMONGOOSE_USE_LUA Enable Lua scripting
......
......@@ -5027,7 +5027,7 @@ const char *mg_set_option(struct mg_server *server, const char *name,
} else if (ind == HEXDUMP_FILE) {
server->ns_mgr.hexdump_file = *v;
#endif
#ifndef _WIN32
#if !defined(_WIN32) && !defined(MONGOOSE_NO_USER)
} else if (ind == RUN_AS_USER) {
struct passwd *pw;
if ((pw = getpwnam(value)) == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment