[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] MH rmf program
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] MH rmf program |
Date: |
Fri, 19 May 2006 11:43:52 +0300 |
djh <address@hidden> wrote:
> running the MH's rmf program without any arguments gives me a coredump.
Here is the patch:
Index: rmf.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mh/rmf.c,v
retrieving revision 1.23
diff -p -u -r1.23 rmf.c
--- rmf.c 17 May 2006 09:41:36 -0000 1.23
+++ rmf.c 19 May 2006 08:43:17 -0000
@@ -199,12 +199,16 @@ main (int argc, char **argv)
mu_argp_init (program_version, NULL);
mh_argp_parse (&argc, &argv, 0, options, mh_option, args_doc, doc,
opt_handler, NULL, NULL);
- if (!explicit_folder)
- interactive = 1;
cur_folder_path = current_folder_path ();
- name = mh_expand_name (NULL, folder_name, 0);
+ if (!explicit_folder)
+ {
+ interactive = 1;
+ name = cur_folder_path;
+ }
+ else
+ name = mh_expand_name (NULL, folder_name, 0);
rmf (name);
return 0;
}
Regards,
Sergey