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
d65d7c73
Commit
d65d7c73
authored
Sep 23, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spacing in an error message
parent
0d88c116
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
m00003.vtc
bin/varnishtest/tests/m00003.vtc
+1
-1
m00008.vtc
bin/varnishtest/tests/m00008.vtc
+1
-1
vcc_vmod.c
lib/libvcc/vcc_vmod.c
+2
-3
No files found.
bin/varnishtest/tests/m00003.vtc
View file @
d65d7c73
...
...
@@ -26,6 +26,6 @@ client c1 {
expect resp.http.bar == "foo"
} -run
varnish v1 -errvcl {Expected 'from path...'} {
varnish v1 -errvcl {Expected 'from path
...'} {
import std to;
}
bin/varnishtest/tests/m00008.vtc
View file @
d65d7c73
...
...
@@ -11,7 +11,7 @@ varnish v1 -vcl+backend {
varnish v1 -cliok "param.set vcc_unsafe_path off"
varnish v1 -errvcl {'import ... from path...' not allowed.} {
varnish v1 -errvcl {'import ... from path
...' not allowed.} {
backend default { .host = "${s1_sock}"; }
import std from "${topbuild}/lib/libvmod_std/.libs/libvmod_std.so" ;
}
...
...
lib/libvcc/vcc_vmod.c
View file @
d65d7c73
...
...
@@ -85,14 +85,13 @@ vcc_ParseImport(struct vcc *tl)
if
(
tl
->
t
->
tok
==
ID
)
{
if
(
!
tl
->
unsafe_path
)
{
VSB_printf
(
tl
->
sb
,
"'import ... from path...'"
" not allowed.
\n
At:"
);
"'import ... from path ...' not allowed.
\n
At:"
);
vcc_ErrToken
(
tl
,
tl
->
t
);
vcc_ErrWhere
(
tl
,
tl
->
t
);
return
;
}
if
(
!
vcc_IdIs
(
tl
->
t
,
"from"
))
{
VSB_printf
(
tl
->
sb
,
"Expected 'from path...'
\n
"
);
VSB_printf
(
tl
->
sb
,
"Expected 'from path
...'
\n
"
);
vcc_ErrWhere
(
tl
,
tl
->
t
);
return
;
}
...
...
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