~ubuntu-branches/ubuntu/hardy/exim4/hardy-proposed

« back to all changes in this revision

Viewing changes to src/exim_dbmbuild.c

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber
  • Date: 2005-07-02 06:08:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050702060834-qk17pd52kb9nt3bj
Tags: 4.52-1
* new upstream version 4.51. (mh)
  * adapt 70_remove_exim-users_references
  * remove 37_gnutlsparams
  * adapt 36_pcre
  * adapt 31_eximmanpage
* fix package priorities to have them in sync with override again. (mh)
* Fix error in nb (Norwegian) translation.
  Thanks to Helge Hafting. (mh). Closes: #315775
* Standards-Version: 3.6.2, no changes needed. (mh)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Cambridge: exim/exim-src/src/exim_dbmbuild.c,v 1.4 2005/06/27 14:29:43 ph10 Exp $ */
 
2
 
1
3
/*************************************************
2
4
*     Exim - an Internet mail transport agent    *
3
5
*************************************************/
4
6
 
5
 
/* Copyright (c) University of Cambridge 1995 - 2004 */
 
7
/* Copyright (c) University of Cambridge 1995 - 2005 */
6
8
/* See the file NOTICE for conditions of use and distribution. */
7
9
 
8
10
 
56
58
 
57
59
/* For Berkeley DB >= 2, we can define a function to be called in case of DB
58
60
errors. This should help with debugging strange DB problems, e.g. getting "File
59
 
exists" when you try to open a db file. */
 
61
exists" when you try to open a db file. The API changed at release 4.3. */
60
62
 
61
63
#if defined(USE_DB) && defined(DB_VERSION_STRING)
62
64
void
 
65
#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3)
 
66
dbfn_bdb_error_callback(const DB_ENV *dbenv, const char *pfx, const char *msg)
 
67
{
 
68
dbenv = dbenv;
 
69
#else
63
70
dbfn_bdb_error_callback(const char *pfx, char *msg)
64
71
{
 
72
#endif
65
73
pfx = pfx;
66
74
printf("Berkeley DB error: %s\n", msg);
67
75
}
199
207
  {
200
208
  printf("exim_dbmbuild: unable to create %s: %s\n", temp_dbmname,
201
209
    strerror(errno));
202
 
  fclose(f);
 
210
  (void)fclose(f);
203
211
  exit(1);
204
212
  }
205
213
 
396
404
TIDYUP:
397
405
 
398
406
EXIM_DBCLOSE(d);
399
 
fclose(f);
 
407
(void)fclose(f);
400
408
 
401
409
/* If successful, output the number of entries and rename the temporary
402
410
files. */