[PATCH] Use predetermined -s file name by default

Tollef Fog Heen tfheen at varnish-software.com
Tue Sep 6 13:25:36 CEST 2011


If no -s argument was given, we would generate a random file name in
the runtime directory.  This file was never removed, something that
would fill up the disk over time.  Use a predetermined name instead.
---
 bin/varnishd/storage_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bin/varnishd/storage_file.c b/bin/varnishd/storage_file.c
index ea78526..bb0bb43 100644
--- a/bin/varnishd/storage_file.c
+++ b/bin/varnishd/storage_file.c
@@ -117,7 +117,7 @@ smf_initfile(struct stevedore *st, struct smf_sc *sc, const char *size)
 }
 
 static const char default_size[] = "50%";
-static const char default_filename[] = ".";
+static const char default_filename[] = "./varnish.storage";
 
 static void
 smf_init(struct stevedore *parent, int ac, char * const *av)
-- 
1.7.5.4





More information about the varnish-dev mailing list