]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: Create the cache path of user gencache recursively
authorAndreas Schneider <asn@samba.org>
Mon, 21 Dec 2020 09:36:46 +0000 (10:36 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2021 12:41:13 +0000 (12:41 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14601

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jan  6 23:59:58 UTC 2021 on sn-devel-184

(cherry picked from commit 38c989fab78c3baade3e441829b7becf6b25ef3f)

source3/lib/gencache.c

index 896bf50cbd7ab8aa309f7ce59000e82f5db8db2b..07a08fa826815cec486d8a3e9fd5cf42bccfa373 100644 (file)
@@ -124,7 +124,7 @@ static bool gencache_init(void)
                        return false;
                }
 
-               ok = directory_create_or_exist(cache_dname, 0700);
+               ok = directory_create_or_exists_recursive(cache_dname, 0700);
                if (!ok) {
                        DBG_ERR("Failed to create directory: %s - %s\n",
                                cache_dname, strerror(errno));