]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
on -M and -F create cache dir if it doesn't exist
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 Apr 2002 04:53:16 +0000 (06:53 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 1 Apr 2002 04:53:16 +0000 (06:53 +0200)
stats.c

diff --git a/stats.c b/stats.c
index ea75fc158158ef4048e0ede9d08e13a90d429dab..76445792b3e57506b14e1dae230a7bcebafacb16 100644 (file)
--- a/stats.c
+++ b/stats.c
@@ -271,6 +271,8 @@ void stats_set_limits(long maxfiles, long maxsize)
                maxsize /= 16;
        }
 
+       create_dir(cache_dir);
+
        /* set the limits in each directory */
        for (dir=0;dir<=0xF;dir++) {
                char *fname, *cdir;