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
93a6c4ca
Commit
93a6c4ca
authored
Oct 07, 2014
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report error in STV_FileSize on empty file and no size specified
parent
29097215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
stevedore_utils.c
bin/varnishd/storage/stevedore_utils.c
+3
-0
No files found.
bin/varnishd/storage/stevedore_utils.c
View file @
93a6c4ca
...
...
@@ -196,6 +196,9 @@ STV_FileSize(int fd, const char *size, unsigned *granularity, const char *ctx)
* use its existing size.
*/
l
=
st
.
st_size
;
}
else
if
(
size
==
NULL
||
*
size
==
'\0'
)
{
ARGV_ERR
(
"(%s) no size specified
\n
"
,
ctx
);
}
else
{
AN
(
size
);
q
=
VNUM_2bytes
(
size
,
&
l
,
fssize
);
...
...
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