Removed the global alias file
[mmh] / uip / spost.c
index 0679ac6..76b68a4 100644 (file)
@@ -142,7 +142,7 @@ static int rmflg = 1;  /* remove temporary file when done */
 static int watch = 0;  /* watch the delivery process */
 static int backflg = 0;  /* rename input file as *.bak when done */
 static int pushflg = 0;  /* if going to fork to sendmail */
-static int aliasflg = -1;  /* if going to process aliases */
+static int aliasflg = 0;  /* if going to process aliases */
 static int outputlinelen=72;
 
 static unsigned msgflags = 0;  /* what we've seen */
@@ -284,10 +284,6 @@ main(int argc, char **argv)
                                case ALIASW:
                                        if (!(cp = *argp++) || *cp == '-')
                                                adios(NULL, "missing argument to %s", argp[-2]);
-                                       if (aliasflg < 0) {
-                                               /* load default aka's */
-                                               alias(AliasFile);
-                                       }
                                        aliasflg = 1;
                                        if ((state = alias(cp)) != AK_OK)
                                                adios(NULL, "aliasing error in file %s - %s", cp, akerror(state) );
@@ -325,9 +321,6 @@ main(int argc, char **argv)
                        msg = cp;
        }
 
-       if (aliasflg < 0)
-               alias(AliasFile);  /* load default aka's */
-
        if (!msg)
                adios(NULL, "usage: %s [switches] file", invo_name);