dma: ignore a whole slew of sendmail options
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 9 Jul 2009 12:37:17 +0000 (14:37 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 16 Jul 2009 14:13:06 +0000 (16:13 +0200)
Probably some more left.

Submitted-by: Peter Pentchev <roam@ringlet.net>
libexec/dma/dma.c

index 19cbc82..f9d1eb6 100644 (file)
@@ -1008,7 +1008,7 @@ main(int argc, char **argv)
        snprintf(tag, 254, "dma");
 
        opterr = 0;
-       while ((ch = getopt(argc, argv, "A:b:Df:iL:o:O:q:r:")) != -1) {
+       while ((ch = getopt(argc, argv, "A:b:B:C:d:Df:F:h:iL:N:no:O:q:r:R:UV:vX:")) != -1) {
                switch (ch) {
                case 'A':
                        /* -AX is being ignored, except for -A{c,m} */
@@ -1050,6 +1050,21 @@ main(int argc, char **argv)
                        doqueue = 1;
                        break;
 
+               /* Ignored options */
+               case 'B':
+               case 'C':
+               case 'd':
+               case 'F':
+               case 'h':
+               case 'N':
+               case 'n':
+               case 'R':
+               case 'U':
+               case 'V':
+               case 'v':
+               case 'X':
+                       break;
+
                default:
                        exit(1);
                }