[PATCH 4/8] Don't allow relative sizes for stevedore file size

Martin Blix Grydeland martin at varnish-software.com
Mon Oct 6 17:50:07 CEST 2014


---
 bin/varnishd/storage/stevedore_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/varnishd/storage/stevedore_utils.c b/bin/varnishd/storage/stevedore_utils.c
index d5ed033..540f911 100644
--- a/bin/varnishd/storage/stevedore_utils.c
+++ b/bin/varnishd/storage/stevedore_utils.c
@@ -198,7 +198,7 @@ STV_FileSize(int fd, const char *size, unsigned *granularity, const char *ctx)
 		l = st.st_size;
 	} 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);
-- 
2.1.1




More information about the varnish-dev mailing list