Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ed93bc55
Commit
ed93bc55
authored
Nov 23, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vut: Don't read VSL from stdin in daemon mode
parent
9853a629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
vut_options.h
include/vut_options.h
+3
-1
vut.c
lib/libvarnishapi/vut.c
+3
-0
No files found.
include/vut_options.h
View file @
ed93bc55
...
...
@@ -93,7 +93,9 @@
#define VUT_OPT_r \
VOPT("r:", "[-r <filename>]", "Binary file input", \
"Read log in binary file format from this file. The file" \
" can be created with ``varnishlog -w filename``." \
" can be created with ``varnishlog -w filename``. If the" \
" filename is -, logs are read from the standard input." \
" and cannot work as a daemon." \
)
#define VUT_OPT_t \
...
...
lib/libvarnishapi/vut.c
View file @
ed93bc55
...
...
@@ -302,6 +302,9 @@ VUT_Setup(struct VUT *vut)
(
vut
->
r_arg
==
NULL
?
0
:
2
)
>
2
)
VUT_Error
(
vut
,
1
,
"Only one of -n and -r options may be used"
);
if
(
vut
->
r_arg
!=
NULL
&&
!
strcmp
(
vut
->
r_arg
,
"-"
)
&&
vut
->
D_opt
)
VUT_Error
(
vut
,
1
,
"Daemon cannot read from stdin"
);
/* Create and validate the query expression */
vut
->
vslq
=
VSLQ_New
(
vut
->
vsl
,
NULL
,
(
enum
VSL_grouping_e
)
vut
->
g_arg
,
vut
->
q_arg
);
...
...
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