Merge pull request #434 from jhnwkmn/no-user

Added MONGOOSE_NO_USER configuration define.
This commit is contained in:
Sergey Lyubka committed 2014-11-09 09:56:31 +00:00
commit 5b143a6237
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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) {