mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-11 16:40:17 +00:00
Added MONGOOSE_NO_USER configuration define.
Low-end systems, not running a proper OS, may not have the concept of a user.
This commit is contained in:
1 parent
e7ac6024de
commit
8a7d535d92
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -5026,7 +5026,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) {
|
||||
|
||||
Reference in new issue
Block a user