Deleted Added
full compact
main.c (98841) main.c (102528)
1/*
2 * Copyright (c) 1998-2002 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

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

20SM_UNUSED(static char copyright[]) =
21"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\
22 All rights reserved.\n\
23 Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.\n\
24 Copyright (c) 1988, 1993\n\
25 The Regents of the University of California. All rights reserved.\n";
26#endif /* ! lint */
27
1/*
2 * Copyright (c) 1998-2002 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

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

20SM_UNUSED(static char copyright[]) =
21"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\
22 All rights reserved.\n\
23 Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.\n\
24 Copyright (c) 1988, 1993\n\
25 The Regents of the University of California. All rights reserved.\n";
26#endif /* ! lint */
27
28SM_RCSID("@(#)$Id: main.c,v 8.887 2002/06/17 22:25:52 gshapiro Exp $")
28SM_RCSID("@(#)$Id: main.c,v 8.887.2.1 2002/08/04 17:36:06 gshapiro Exp $")
29
30
31#if NETINET || NETINET6
32# include <arpa/inet.h>
33#endif /* NETINET || NETINET6 */
34
35/* for getcfname() */
36#include <sendmail/pathnames.h>

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

3375static char *
3376getextenv(envar)
3377 const char *envar;
3378{
3379 char **envp;
3380 int l;
3381
3382 l = strlen(envar);
29
30
31#if NETINET || NETINET6
32# include <arpa/inet.h>
33#endif /* NETINET || NETINET6 */
34
35/* for getcfname() */
36#include <sendmail/pathnames.h>

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

3375static char *
3376getextenv(envar)
3377 const char *envar;
3378{
3379 char **envp;
3380 int l;
3381
3382 l = strlen(envar);
3383 for (envp = ExternalEnviron; *envp != NULL; envp++)
3383 for (envp = ExternalEnviron; envp != NULL && *envp != NULL; envp++)
3384 {
3385 if (strncmp(*envp, envar, l) == 0 && (*envp)[l] == '=')
3386 return &(*envp)[l + 1];
3387 }
3388 return NULL;
3389}
3390/*
3391** SETUSERENV -- set an environment in the propagated environment

--- 949 unchanged lines hidden ---
3384 {
3385 if (strncmp(*envp, envar, l) == 0 && (*envp)[l] == '=')
3386 return &(*envp)[l + 1];
3387 }
3388 return NULL;
3389}
3390/*
3391** SETUSERENV -- set an environment in the propagated environment

--- 949 unchanged lines hidden ---