/*
* Copyright (c) 2000-2002 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*
*/
#include <sendmail.h>
#include <sendmail/pathnames.h>
/*
** GETCFNAME -- return the name of the .cf file to use.
**
** Some systems (e.g., NeXT) determine this dynamically.
**
** For others: returns submit.cf or sendmail.cf depending
** on the modes.
**
** Parameters:
** opmode -- operation mode.
** submitmode -- submit mode.
** cftype -- may request a certain cf file.
** conffile -- if set, return it.
**
** Returns:
** name of .cf file.
*/
char *
int opmode;
int submitmode;
int cftype;
char *conffile;
{
#if NETINFO
char *cflocation;
#endif /* NETINFO */
return conffile;
if (cftype == SM_GET_SUBMIT_CF ||
((submitmode != SUBMIT_UNKNOWN ||
opmode == MD_DELIVER ||
opmode == MD_ARPAFTP ||
cftype != SM_GET_SENDMAIL_CF))
{
#if NETINFO
"submit.cf", '\0');
if (cflocation != NULL)
else
#endif /* NETINFO */
"submit.cf");
return cf;
}
#if NETINFO
"sendmail.cf", '\0');
if (cflocation != NULL)
return cflocation;
#endif /* NETINFO */
return _PATH_SENDMAILCF;
}