Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
5b143a62
Commit
5b143a62
authored
Nov 09, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #434 from jhnwkmn/no-user
Added MONGOOSE_NO_USER configuration define.
parents
d244a7fd
8a7d535d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Embed.md
docs/Embed.md
+2
-0
mongoose.c
mongoose.c
+1
-1
No files found.
docs/Embed.md
View file @
5b143a62
...
...
@@ -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
...
...
mongoose.c
View file @
5b143a62
...
...
@@ -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
#if
ndef _WIN32
#if
!defined(_WIN32) && !defined(MONGOOSE_NO_USER)
}
else
if
(
ind
==
RUN_AS_USER
)
{
struct
passwd
*
pw
;
if
((
pw
=
getpwnam
(
value
))
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment