[master] 3eeafa8 Don't allow relative sizes for stevedore file size
Martin Blix Grydeland
martin at varnish-software.com
Tue Oct 21 12:25:42 CEST 2014
commit 3eeafa8b0298ec3c2d429df25fdd92ba4216af20
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Mon Oct 6 15:36:19 2014 +0200
Don't allow relative sizes for stevedore file size
diff --git a/bin/varnishd/storage/stevedore_utils.c b/bin/varnishd/storage/stevedore_utils.c
index 359b5ea..daff6d7 100644
--- a/bin/varnishd/storage/stevedore_utils.c
+++ b/bin/varnishd/storage/stevedore_utils.c
@@ -201,7 +201,7 @@ STV_FileSize(int fd, const char *size, unsigned *granularity, const char *ctx)
ctx);
} else {
AN(size);
- q = VNUM_2bytes(size, &l, fssize);
+ q = VNUM_2bytes(size, &l, 0);
if (q != NULL)
ARGV_ERR("(%s) size \"%s\": %s\n", ctx, size, q);
More information about the varnish-commit
mailing list