summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-02-22 11:26:34 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2018-02-22 11:31:27 +0000
commit15ae19f96fb9e6c7262fd4f69049e97e9403f4c8 (patch)
tree647a449154c8946bb7ba96fe62705b56bd75c8ce /src
parentdec766a1977250758eb7a3e127e079a9271afd89 (diff)
Fix exim_dbmbuild to permit directoryless filenames. Bug 2242
Broken-by: 0a6c178c6c
Diffstat (limited to 'src')
-rw-r--r--src/src/exim_dbmbuild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/src/exim_dbmbuild.c b/src/src/exim_dbmbuild.c
index c95e16896..afd5095db 100644
--- a/src/src/exim_dbmbuild.c
+++ b/src/src/exim_dbmbuild.c
@@ -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. */