don't rebuild non-alias database maps on -bi
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 2 Jun 1993 08:54:59 +0000 (00:54 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 2 Jun 1993 08:54:59 +0000 (00:54 -0800)
SCCS-vsn: usr.sbin/sendmail/src/map.c 6.27

usr/src/usr.sbin/sendmail/src/map.c

index 83ebd65..f893d67 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)map.c      6.26 (Berkeley) %G%";
+static char sccsid[] = "@(#)map.c      6.27 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
@@ -332,7 +332,8 @@ map_init(s, rebuild)
 
        if (rebuild)
        {
 
        if (rebuild)
        {
-               if (bitset(MCF_REBUILDABLE, map->map_class->map_cflags))
+               if (bitset(MF_ALIAS, map->map_mflags) &&
+                   bitset(MCF_REBUILDABLE, map->map_class->map_cflags))
                        rebuildaliases(map, FALSE);
        }
        else
                        rebuildaliases(map, FALSE);
        }
        else