diff --git a/ldap2dns.c b/ldap2dns.c index 3ebbef4..45980f6 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -139,6 +139,8 @@ static void die_exit(const char* message) static void set_datadir(void) { char* ev = getenv("TINYDNSDIR"); + if (ev == NULL) + char* ev = getenv("LDAP2DNS_TINYDNSDIR"); int len; tinydns_textfile[0] = '\0';