mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Do not create missing DB hints files for read-only operations on them;
simply fail the lookup. This prevents Exim from creating hints files that it can't use when its DBM method is DB 1.85 (the default). Obtained from: author
This commit is contained in:
parent
94d9cbf124
commit
ac224686f9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73715
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= exim
|
||||
PORTVERSION= ${EXIM_VERSION}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
|
||||
http://www.exim.org/ftp/exim4/ \
|
||||
|
11
mail/exim/files/patch-src::dbfn.c
Normal file
11
mail/exim/files/patch-src::dbfn.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/dbfn.c.orig Wed Dec 18 12:28:01 2002
|
||||
+++ src/dbfn.c Tue Jan 21 12:17:02 2003
|
||||
@@ -148,7 +148,7 @@
|
||||
sprintf(CS buffer, "%s/db/%s", spool_directory, name);
|
||||
EXIM_DBOPEN(buffer, flags, EXIMDB_MODE, &(dbblock->dbptr));
|
||||
|
||||
-if (dbblock->dbptr == NULL && errno == ENOENT)
|
||||
+if (dbblock->dbptr == NULL && errno == ENOENT && flags == O_RDWR)
|
||||
{
|
||||
DEBUG(D_hints_lookup)
|
||||
debug_printf("%s appears not to exist: trying to create\n", buffer);
|
Loading…
Reference in New Issue
Block a user