Changeset 5489:63efed810906

Show
Ignore:
Timestamp:
2008-08-23 15:21:42 (3 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Fix infinite loop with "mutt -", introduced in [31c9e9727d42].
Treats - as a non-option argument. It would be reasonable to treat it
as an error instead.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5487 r5489  
     12008-08-19 16:44 -0400  Aron Griffis  <agriffis@n01se.net>  (31c9e9727d42) 
     2 
     3        * main.c: Handle -- correctly with or without -a, closes #3097 
     4 
     5        Prefix optstring with "+" to force POSIX behavior on GNU getopt, and 
     6        thereby prevent reordering argv. This allows us to correctly handle 
     7        mixed addresses, attachments, options and the double-dash to signal 
     8        end-of-options. 
     9 
     10        Signed-off-by: Aron Griffis <agriffis@n01se.net> 
     11 
     122008-08-22 17:49 +0200  Rocco Rutte  <pdmef@gmx.net>  (6fd1fa2d98bc) 
     13 
     14        * doc/manual.xml.head: Manual: fix/improve markup/content, see 
     15        #3109 
     16 
    1172008-08-21 10:42 +0200  Rocco Rutte  <pdmef@gmx.net>  (15d93fe50e62) 
    218 
    319        * init.h: Clarify documentation for $config_charset. Closes #2021. 
    420 
    5 2008-08-21 10:30 +0200  Rocco Rutte  <pdmef@gmx.net>  (bc8b07e9e95b) 
    6  
    7         * ChangeLog, doc/manual.xml.head: Improve color/mono command synopsis. 
     21        * doc/manual.xml.head: Improve color/mono command synopsis. 
    822        Closes #2630. 
    9  
    10 2008-08-21 09:36 +0200  Rocco Rutte  <pdmef@gmx.net>  (4139ac196ca8) 
    1123 
    1224        * init.h: Better document the effect of $thorough_search being unset. 
    1325        Closes #3104. 
    1426 
    15 2008-08-21 07:33 +0200  Rocco Rutte  <pdmef@gmx.net>  (9373afa9278f) 
    16  
    17         * ChangeLog, mutt_ssl.c: Port certificate host checking from msmtp to 
     27        * mutt_ssl.c: Port certificate host checking from msmtp to 
    1828        mutt. It supports IDN, wildcards and extracting the hostname from 
    19         subject alternative field as well as common name which should be the 
    20         same gnutls supports. Closes #3087. 
     29        subject alternative field as well as common name which should be 
     30        the same gnutls supports. Closes #3087. 
    2131 
    22322008-08-19 13:17 -0700  Brendan Cully  <brendan@kublai.com>  (573d1aab3c89) 
     
    2434        * init.c: Silence an incorrect uninitialized variable warning. 
    2535 
    26 2008-08-19 13:14 -0700  Brendan Cully  <brendan@kublai.com>  (6b4f25cd9dac) 
    27  
    28         * ChangeLog, init.h: Better documentation for how quote_regexp 
    29         determines quote level. Closes #1463. 
     36        * init.h: Better documentation for how quote_regexp determines 
     37        quote level. Closes #1463. 
    3038 
    31392008-08-19 09:39 +0200  Rocco Rutte  <pdmef@gmx.net>  (3e850c6e43fd) 
  • main.c

    r5488 r5489  
    583583   for (; optind < argc; optind++) 
    584584   { 
    585     if (argv[optind][0] == '-') 
     585    if (argv[optind][0] == '-' && argv[optind][1] != '\0') 
    586586    { 
    587587      if (argv[optind][1] == '-' && argv[optind][2] == '\0')