Fix exim_dbmbuild to permit directoryless filenames. Bug 2242
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 22 Feb 2018 11:26:34 +0000 (11:26 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 22 Feb 2018 11:31:27 +0000 (11:31 +0000)
Broken-by: 0a6c178c6c
doc/doc-txt/ChangeLog
src/src/exim_dbmbuild.c

index 3fd3f384f1263d5bd8555ecd7f7b9f2411c155bf..d672ee7204244dcf21275e062a7000543c513b09 100644 (file)
@@ -118,6 +118,8 @@ JH/23 Fix memory leak during multi-message connections using STARTTLS under
       OpenSSL.  Certificate information is loaded for every new TLS startup,
       and the resources needed to be freed.
 
+JH/24 Bug 2242: Fix exim_dbmbuild to permit directoryless filenames.
+
 
 Exim version 4.90
 -----------------
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. */