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
f7b3ef74
Commit
f7b3ef74
authored
Oct 07, 2014
by
Martin Blix Grydeland
Committed by
Lasse Karstensen
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report error in STV_FileSize on empty file and no size specified
parent
795bc31f
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 @
f7b3ef74
...
...
@@ -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