vendor hooks (for Sun)
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 17 May 1995 12:08:04 +0000 (04:08 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 17 May 1995 12:08:04 +0000 (04:08 -0800)
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.167
SCCS-vsn: usr.sbin/sendmail/src/main.c 8.110

usr/src/usr.sbin/sendmail/src/conf.c
usr/src/usr.sbin/sendmail/src/main.c

index a7f9a34..5ff431a 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)conf.c     8.166 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c     8.167 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -2757,6 +2757,31 @@ setvendor(vendor)
        return FALSE;
 }
 \f/*
        return FALSE;
 }
 \f/*
+**  VENDOR_PRE_DEFAULTS, VENDOR_POST_DEFAULTS -- set vendor-specific defaults
+**
+**     Vendor_pre_defaults is called before reading the configuration
+**     file; vendor_post_defaults is called immediately after.
+**
+**     Parameters:
+**             e -- the global environment to initialize.
+**
+**     Returns:
+**             none.
+*/
+
+void
+vendor_pre_defaults(e)
+       ENVELOPE *e;
+{
+}
+
+
+void
+vendor_post_defaults(e)
+       ENVELOPE *e;
+{
+}
+\f/*
 **  STRTOL -- convert string to long integer
 **
 **     For systems that don't have it in the C library.
 **  STRTOL -- convert string to long integer
 **
 **     For systems that don't have it in the C library.
index 1999a5a..9fa3abb 100644 (file)
@@ -13,7 +13,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     8.109 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     8.110 (Berkeley) %G%";
 #endif /* not lint */
 
 #define        _DEFINE
 #endif /* not lint */
 
 #define        _DEFINE
@@ -665,7 +665,9 @@ main(argc, argv, envp)
 #ifdef XDEBUG
        checkfd012("before readcf");
 #endif
 #ifdef XDEBUG
        checkfd012("before readcf");
 #endif
+       vendor_pre_defaults(CurEnv);
        readcf(getcfname(), safecf, CurEnv);
        readcf(getcfname(), safecf, CurEnv);
+       vendor_post_defaults(CurEnv);
 
        if (tTd(0, 1))
        {
 
        if (tTd(0, 1))
        {