]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Create tmp/ before CACHEDIR.TAG
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 13 Dec 2023 22:24:15 +0000 (16:24 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 13 Dec 2023 22:25:53 +0000 (16:25 -0600)
tmp/'s creation is (C's equivalent of) a `mkdir -p`. It ensures the
cache directory exists by the time Fort attempts to create CACHEDIR.TAG.

src/cache/local_cache.c

index 38b46cdf3c47c566613e320409c7fda8aa39e60b..4550ecb6a965a926b19481ef85c64dcbe32e6189 100644 (file)
@@ -184,8 +184,8 @@ void
 cache_setup(void)
 {
        init_cache_metafile();
-       init_cachedir_tag();
        init_tmp_dir();
+       init_cachedir_tag();
 }
 
 void