readmsg segfaults

View: New views
1 Messages — Rating Filter:   Alert me  

readmsg segfaults

by Jordi Mallach-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

A Debian user reported that using readmsg -a always leads to a segfault,
regardless of the mailbox file.

He identified the cause in the command line parser, as detailed in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517457.

Attached is Steve Cotton's patch to fix the issue.

Jordi
--
Jordi Mallach PĂ©rez  --  Debian developer     http://www.debian.org/
jordi@...     jordi@...     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/


--- a/readmsg/readmsg.c
+++ b/readmsg/readmsg.c
@@ -104,11 +104,11 @@ readmsg_parse_opt (int key, char *arg, struct argp_state *astate)
       break;
 
     case 'p':
-      mu_argp_node_list_new (&lst, "form-feeds", arg);
+      mu_argp_node_list_new (&lst, "form-feeds", "yes");
       break;
   
     case 'a':
-      mu_argp_node_list_new (&lst, "show-all-match", arg);
+      mu_argp_node_list_new (&lst, "show-all-match", "yes");
       break;
 
     case ARGP_KEY_INIT:



_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

signature.asc (205 bytes) Download Attachment