Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
5a19438f
Commit
5a19438f
authored
10 years ago
by
Sergey Lyubka
Browse files
Options
Downloads
Patches
Plain Diff
Added guard for MONGOOSE_NO_FILESYSTEM
parent
860addf1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/server.c
+3
-3
3 additions, 3 deletions
examples/server.c
with
3 additions
and
3 deletions
examples/server.c
+
3
−
3
View file @
5a19438f
...
...
@@ -145,7 +145,7 @@ static void show_usage_and_exit(void) {
fprintf
(
stderr
,
"Mongoose version %s (c) Sergey Lyubka, built on %s
\n
"
,
MVER
,
__DATE__
);
fprintf
(
stderr
,
"Usage:
\n
"
);
#if
n
def
MONGOOSE_NO_AUTH
#if
!
def
ined(
MONGOOSE_NO_AUTH
) && !defined(MONGOOSE_NO_FILESYSTEM)
fprintf
(
stderr
,
" mongoose -A <htpasswd_file> <realm> <user> <passwd>
\n
"
);
#endif
fprintf
(
stderr
,
" mongoose [config_file]
\n
"
);
...
...
@@ -335,7 +335,7 @@ static void set_absolute_path(char *options[], const char *option_name) {
}
}
#if
n
def
MONGOOSE_NO_AUTH
#if
!
def
ined(
MONGOOSE_NO_AUTH
) && !defined(MONGOOSE_NO_FILESYSTEM)
int
modify_passwords_file
(
const
char
*
fname
,
const
char
*
domain
,
const
char
*
user
,
const
char
*
pass
)
{
int
found
;
...
...
@@ -406,7 +406,7 @@ static void start_mongoose(int argc, char *argv[]) {
die
(
"%s"
,
"Failed to start Mongoose."
);
}
#if
n
def
MONGOOSE_NO_AUTH
#if
!
def
ined(
MONGOOSE_NO_AUTH
) && !defined(MONGOOSE_NO_FILESYSTEM)
// Edit passwords file if -A option is specified
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"-A"
))
{
if
(
argc
!=
6
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment