ctdb: Fix a cut&paste error
authorVolker Lendecke <vl@samba.org>
Tue, 31 Jul 2018 19:53:39 +0000 (21:53 +0200)
committerAmitay Isaacs <amitay@samba.org>
Fri, 3 Aug 2018 06:24:06 +0000 (08:24 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13554

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/path.c

index 36706e43b322ab506d417933715eb2513ca5ac46..165664650edb1e1ea80f1c1e259cc07feaf5efaa 100644 (file)
@@ -149,7 +149,7 @@ const char *path_vardir(void)
 {
        bool ok;
 
-       if (! ctdb_paths.rundir_set) {
+       if (! ctdb_paths.vardir_set) {
                ok = path_construct(ctdb_paths.vardir, "var");
                if (!ok) {
                        D_ERR("Failed to construct VARDIR\n");