diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2003-01-21 10:23:37 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2003-01-21 10:23:37 +0000 |
commit | ac224686f97fa7a4fa9d060d0ef1f9b0d9707e54 (patch) | |
tree | ddf2f83316943ef8ffdd13f25ed2f6e6c544c069 /mail/exim | |
parent | Fix install. (diff) |
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
Notes
Notes:
svn path=/head/; revision=73715
Diffstat (limited to 'mail/exim')
-rw-r--r-- | mail/exim/Makefile | 1 | ||||
-rw-r--r-- | mail/exim/files/patch-src::dbfn.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile index dfafb3267260..256152fc46d6 100644 --- a/mail/exim/Makefile +++ b/mail/exim/Makefile @@ -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/ \ diff --git a/mail/exim/files/patch-src::dbfn.c b/mail/exim/files/patch-src::dbfn.c new file mode 100644 index 000000000000..68ffdda34f0b --- /dev/null +++ b/mail/exim/files/patch-src::dbfn.c @@ -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); |