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
5a19438f
Commit
5a19438f
authored
Aug 04, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added guard for MONGOOSE_NO_FILESYSTEM
parent
860addf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
server.c
examples/server.c
+3
-3
No files found.
examples/server.c
View file @
5a19438f
...
@@ -145,7 +145,7 @@ static void show_usage_and_exit(void) {
...
@@ -145,7 +145,7 @@ static void show_usage_and_exit(void) {
fprintf
(
stderr
,
"Mongoose version %s (c) Sergey Lyubka, built on %s
\n
"
,
fprintf
(
stderr
,
"Mongoose version %s (c) Sergey Lyubka, built on %s
\n
"
,
MVER
,
__DATE__
);
MVER
,
__DATE__
);
fprintf
(
stderr
,
"Usage:
\n
"
);
fprintf
(
stderr
,
"Usage:
\n
"
);
#if
ndef MONGOOSE_NO_AUTH
#if
!defined(MONGOOSE_NO_AUTH) && !defined(MONGOOSE_NO_FILESYSTEM)
fprintf
(
stderr
,
" mongoose -A <htpasswd_file> <realm> <user> <passwd>
\n
"
);
fprintf
(
stderr
,
" mongoose -A <htpasswd_file> <realm> <user> <passwd>
\n
"
);
#endif
#endif
fprintf
(
stderr
,
" mongoose [config_file]
\n
"
);
fprintf
(
stderr
,
" mongoose [config_file]
\n
"
);
...
@@ -335,7 +335,7 @@ static void set_absolute_path(char *options[], const char *option_name) {
...
@@ -335,7 +335,7 @@ static void set_absolute_path(char *options[], const char *option_name) {
}
}
}
}
#if
ndef MONGOOSE_NO_AUTH
#if
!defined(MONGOOSE_NO_AUTH) && !defined(MONGOOSE_NO_FILESYSTEM)
int
modify_passwords_file
(
const
char
*
fname
,
const
char
*
domain
,
int
modify_passwords_file
(
const
char
*
fname
,
const
char
*
domain
,
const
char
*
user
,
const
char
*
pass
)
{
const
char
*
user
,
const
char
*
pass
)
{
int
found
;
int
found
;
...
@@ -406,7 +406,7 @@ static void start_mongoose(int argc, char *argv[]) {
...
@@ -406,7 +406,7 @@ static void start_mongoose(int argc, char *argv[]) {
die
(
"%s"
,
"Failed to start Mongoose."
);
die
(
"%s"
,
"Failed to start Mongoose."
);
}
}
#if
ndef MONGOOSE_NO_AUTH
#if
!defined(MONGOOSE_NO_AUTH) && !defined(MONGOOSE_NO_FILESYSTEM)
// Edit passwords file if -A option is specified
// Edit passwords file if -A option is specified
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"-A"
))
{
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"-A"
))
{
if
(
argc
!=
6
)
{
if
(
argc
!=
6
)
{
...
...
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