summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapctl/ldapctl.c
diff options
context:
space:
mode:
authormartijn <martijn@openbsd.org>2020-03-05 07:39:25 +0000
committermartijn <martijn@openbsd.org>2020-03-05 07:39:25 +0000
commit403185e43a653dece6518a28d0750f212ff40fc5 (patch)
tree6b9dee71d0f9907ec177effddec1fda53668556b /usr.sbin/ldapctl/ldapctl.c
parentsync (diff)
downloadwireguard-openbsd-403185e43a653dece6518a28d0750f212ff40fc5.tar.xz
wireguard-openbsd-403185e43a653dece6518a28d0750f212ff40fc5.zip
Fix ldapd datadir location.
Diff from roklein <at> roklein <dot> de OK claudio@
Diffstat (limited to 'usr.sbin/ldapctl/ldapctl.c')
-rw-r--r--usr.sbin/ldapctl/ldapctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapctl/ldapctl.c b/usr.sbin/ldapctl/ldapctl.c
index c8564c5543f..fce71fb4d54 100644
--- a/usr.sbin/ldapctl/ldapctl.c
+++ b/usr.sbin/ldapctl/ldapctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapctl.c,v 1.13 2019/10/24 12:39:26 tb Exp $ */
+/* $OpenBSD: ldapctl.c,v 1.14 2020/03/05 07:39:25 martijn Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -150,7 +150,7 @@ index_namespace(struct namespace *ns, const char *datadir)
log_info("indexing namespace %s", ns->suffix);
- if (asprintf(&path, "%s/%s_data.db", DATADIR, ns->suffix) == -1)
+ if (asprintf(&path, "%s/%s_data.db", datadir, ns->suffix) == -1)
return -1;
data_db = btree_open(path, BT_NOSYNC | BT_REVERSEKEY, 0644);
free(path);