clarify setvendor()
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sat, 20 Nov 1993 23:15:05 +0000 (15:15 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sat, 20 Nov 1993 23:15:05 +0000 (15:15 -0800)
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.48

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

index 7bd78a5..4f46cab 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)conf.c     8.47 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c     8.48 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -1720,13 +1720,24 @@ getcfname()
 **     Returns:
 **             TRUE -- if ok.
 **             FALSE -- if vendor code could not be processed.
 **     Returns:
 **             TRUE -- if ok.
 **             FALSE -- if vendor code could not be processed.
+**
+**     Side Effects:
+**             It is reasonable to set mode flags here to tweak
+**             processing in other parts of the code if necessary.
+**             For example, if you are a vendor that uses $%y to
+**             indicate YP lookups, you could enable that here.
 */
 
 bool
 setvendor(vendor)
        char *vendor;
 {
 */
 
 bool
 setvendor(vendor)
        char *vendor;
 {
-       return (strcasecmp(vendor, "Berkeley") == 0);
+       if (strcasecmp(vendor, "Berkeley") == 0)
+               return TRUE;
+
+       /* add vendor extensions here */
+
+       return FALSE;
 }
 \f/*
 **  STRTOL -- convert string to long integer
 }
 \f/*
 **  STRTOL -- convert string to long integer