Fix exim_dbmbuild to permit directoryless filenames. Bug 2242
[exim.git] / src / src / exim_dbmbuild.c
index c95e1689656abb3b1f6b42c03c9f14a0a080ba43..afd5095db0e4165eba8653d515651ba7ab918e1c 100644 (file)
@@ -210,6 +210,8 @@ Ustrcat(temp_dbmname, ".dbmbuild_temp");
 Ustrcpy(dirname, temp_dbmname);
 if ((bptr = Ustrrchr(dirname, '/')))
   *bptr = '\0';
+else
+  Ustrcpy(dirname, ".");
 
 /* It is apparently necessary to open with O_RDWR for this to work
 with gdbm-1.7.3, though no reading is actually going to be done. */