Re: [Exim] 3.36 -D problem

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nico Erfurth
Datum:  
To: John Jetmore
CC: exim-users
Betreff: Re: [Exim] 3.36 -D problem
John Jetmore wrote:
> This morning I tried to type something like this on a 3.36 installation:
>
>     mailq -DSPOOL=/path/to/alt/spool

>
> and I accidently typed this:
>
>     mailq -D=/path/to/alt/spool

>
> exim ran away, consuming memory and cycles for about 5 minutes before I
> killed it (I had switched to another window). I realize this is a typo
> and exim isn't required to behave nicely since I screwed up, but I felt
> either I don't understand what's going on or there's a problem.
>
> I also know 3.36 is old, but I thought the same problem might exist in 4.


This should fix the problem for 4.05, at least i think so, it adds a
syntax-check,
so the macro-definition MUST start with a alphanumeric-character.


root@masta /usr/src/exim-4.05/src# diff -u exim.c.org exim.c
--- exim.c.org  Tue Jul 16 13:52:47 2002
+++ exim.c      Tue Jul 16 13:53:34 2002
@@ -1186,7 +1186,7 @@
        uschar name[24];
        uschar *s = argrest;


-      if (*s == 0)
+      if (*s == 0 || !isalnum(*s))
          {
          if(++i < argc) s = argv[i]; else
            { badarg = TRUE; break; }