Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
uplex-varnish
varnishevent
Commits
d35c7717
Commit
d35c7717
authored
Apr 16, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable the -r option
parent
0004ec9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
varnishevent.c
src/varnishevent.c
+11
-6
No files found.
src/varnishevent.c
View file @
d35c7717
...
...
@@ -436,7 +436,7 @@ main(int argc, char *argv[])
CONF_Init
();
read_default_config
();
while
((
c
=
getopt
(
argc
,
argv
,
"adDvP:Vw:F:g:f:q:"
))
!=
-
1
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"adDvP:Vw:F:g:f:q:
r:
"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
a_flag
=
1
;
...
...
@@ -473,13 +473,18 @@ main(int argc, char *argv[])
case
'q'
:
REPLACE
(
q_arg
,
optarg
);
break
;
case
'r'
:
strcpy
(
config
.
varnish_bindump
,
optarg
);
break
;
default:
if
(
c
==
'r'
)
{
strcpy
(
config
.
varnish_bindump
,
optarg
);
if
((
errnum
=
VSL_Arg
(
vsl
,
c
,
optarg
))
<=
0
)
{
if
(
errnum
==
-
1
)
fprintf
(
stderr
,
"-%c: %s
\n
"
,
c
,
VSL_Error
(
vsl
));
else
fprintf
(
stderr
,
"unknown option -%c
\n
"
,
c
);
usage
();
}
if
(
VSL_Arg
(
vsl
,
c
,
optarg
)
>
0
)
break
;
usage
();
break
;
}
}
...
...
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