From: Alberto Leiva Popper Date: Wed, 13 Dec 2023 22:24:15 +0000 (-0600) Subject: Create tmp/ before CACHEDIR.TAG X-Git-Tag: 1.6.1~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66fcc5c6db1f3b2d240945ec08d7a51e121300ab;p=thirdparty%2FFORT-validator.git Create tmp/ before CACHEDIR.TAG 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. --- diff --git a/src/cache/local_cache.c b/src/cache/local_cache.c index 38b46cdf..4550ecb6 100644 --- a/src/cache/local_cache.c +++ b/src/cache/local_cache.c @@ -184,8 +184,8 @@ void cache_setup(void) { init_cache_metafile(); - init_cachedir_tag(); init_tmp_dir(); + init_cachedir_tag(); } void