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
3c87f32a
Commit
3c87f32a
authored
Dec 16, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for compiling VCLs, truncation is not an error
parent
0bff7aab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+4
-2
mgt_vcl.c
bin/varnishd/mgt/mgt_vcl.c
+1
-1
No files found.
bin/varnishd/mgt/mgt_main.c
View file @
3c87f32a
...
...
@@ -174,7 +174,7 @@ usage(void)
static
void
cli_check
(
const
struct
cli
*
cli
)
{
if
(
cli
->
result
==
CLIS_OK
)
{
if
(
cli
->
result
==
CLIS_OK
||
cli
->
result
==
CLIS_TRUNCATED
)
{
AZ
(
VSB_finish
(
cli
->
sb
));
if
(
VSB_len
(
cli
->
sb
)
>
0
)
fprintf
(
stderr
,
"Warnings:
\n
%s
\n
"
,
VSB_data
(
cli
->
sb
));
...
...
@@ -804,7 +804,9 @@ main(int argc, char * const *argv)
fprintf
(
stderr
,
"%s
\n
"
,
VSB_data
(
cli
->
sb
));
VSB_clear
(
cli
->
sb
);
}
exit
(
cli
->
result
==
CLIS_OK
?
0
:
2
);
if
(
cli
->
result
==
CLIS_OK
||
cli
->
result
==
CLIS_TRUNCATED
)
exit
(
0
);
exit
(
2
);
}
else
{
while
(
!
VTAILQ_EMPTY
(
&
f_args
))
{
fa
=
VTAILQ_FIRST
(
&
f_args
);
...
...
bin/varnishd/mgt/mgt_vcl.c
View file @
3c87f32a
...
...
@@ -458,7 +458,7 @@ mgt_new_vcl(struct cli *cli, const char *vclname, const char *vclsrc,
if
(
active_vcl
==
NULL
)
active_vcl
=
vp
;
if
(
cli
->
result
==
CLIS_OK
&&
if
(
(
cli
->
result
==
CLIS_OK
||
cli
->
result
==
CLIS_TRUNCATED
)
&&
vcl_count
>
mgt_param
.
max_vcl
&&
mgt_param
.
max_vcl_handling
==
1
)
{
VCLI_Out
(
cli
,
"%d VCLs loaded
\n
"
,
vcl_count
);
...
...
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