Update env var to be more consistent (leaving backwards compatibility)

git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@388 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
Ben Klang
2006-12-25 06:25:41 +00:00
parent f556f98dce
commit 9703996908

View File

@@ -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';