Deleted Added
full compact
recipient.c (182352) recipient.c (249729)
1/*
2 * Copyright (c) 1998-2003, 2006 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#include <sendmail.h>
15
1/*
2 * Copyright (c) 1998-2003, 2006 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#include <sendmail.h>
15
16SM_RCSID("@(#)$Id: recipient.c,v 8.349 2007/07/10 17:01:22 ca Exp $")
16SM_RCSID("@(#)$Id: recipient.c,v 8.350 2013/03/12 15:24:54 ca Exp $")
17
18static void includetimeout __P((int));
19static ADDRESS *self_reference __P((ADDRESS *));
20static int sortexpensive __P((ADDRESS *, ADDRESS *));
21static int sortbysignature __P((ADDRESS *, ADDRESS *));
22static int sorthost __P((ADDRESS *, ADDRESS *));
23
24typedef int sortfn_t __P((ADDRESS *, ADDRESS *));

--- 1794 unchanged lines hidden (view full) ---

1819 ctladdr->q_flags |= QUNSAFEADDR;
1820 }
1821
1822 /* read the file -- each line is a comma-separated list. */
1823 FileName = fname;
1824 LineNumber = 0;
1825 ctladdr->q_flags &= ~QSELFREF;
1826 nincludes = 0;
17
18static void includetimeout __P((int));
19static ADDRESS *self_reference __P((ADDRESS *));
20static int sortexpensive __P((ADDRESS *, ADDRESS *));
21static int sortbysignature __P((ADDRESS *, ADDRESS *));
22static int sorthost __P((ADDRESS *, ADDRESS *));
23
24typedef int sortfn_t __P((ADDRESS *, ADDRESS *));

--- 1794 unchanged lines hidden (view full) ---

1819 ctladdr->q_flags |= QUNSAFEADDR;
1820 }
1821
1822 /* read the file -- each line is a comma-separated list. */
1823 FileName = fname;
1824 LineNumber = 0;
1825 ctladdr->q_flags &= ~QSELFREF;
1826 nincludes = 0;
1827 while (sm_io_fgets(fp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL &&
1827 while (sm_io_fgets(fp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0 &&
1828 !maxreached)
1829 {
1830 fixcrlf(buf, true);
1831 LineNumber++;
1832 if (buf[0] == '#' || buf[0] == '\0')
1833 continue;
1834
1835 /* <sp>#@# introduces a comment anywhere */

--- 237 unchanged lines hidden ---
1828 !maxreached)
1829 {
1830 fixcrlf(buf, true);
1831 LineNumber++;
1832 if (buf[0] == '#' || buf[0] == '\0')
1833 continue;
1834
1835 /* <sp>#@# introduces a comment anywhere */

--- 237 unchanged lines hidden ---