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

« back to all changes in this revision

Viewing changes to src/lookups/dsearch.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/lookups/dsearch.c,v 1.2 2005/01/04 10:00:44 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
/* The idea for this code came from Matthew Byng-Maddick, but his original has
68
70
 
69
71
int
70
72
dsearch_find(void *handle, uschar *dirname, uschar *keystring, int length,
71
 
  uschar **result, uschar **errmsg)
 
73
  uschar **result, uschar **errmsg, BOOL *do_cache)
72
74
{
73
75
struct stat statbuf;
74
76
int save_errno;
76
78
 
77
79
handle = handle;  /* Keep picky compilers happy */
78
80
length = length;
 
81
do_cache = do_cache;
79
82
 
80
83
if (Ustrchr(keystring, '/') != 0)
81
84
  {