diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-03-17 01:30:34 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-03-17 01:30:34 +0200 |
commit | 02634d3bf0932b8bde43a881d67760f38e3f9e9f (patch) | |
tree | 26a02927411ccea05859111c2db45612b6232e07 /libmailutils | |
parent | 0ac52e06cb1cb91602ee4dc4de32f66423e96b32 (diff) | |
download | mailutils-02634d3bf0932b8bde43a881d67760f38e3f9e9f.tar.gz mailutils-02634d3bf0932b8bde43a881d67760f38e3f9e9f.tar.bz2 |
Bugfixes.
* comsat/action.c (action_echo): Set omit_newline.
* libmailutils/mailbox/mbx_default.c: Return 0 on success.
Fix memory overrun.
* libproto/mailer/smtp.c (smtp_open): Protect tls-related
code with #ifdef WITH_TLS.
* libproto/pop/mbox.c (pop_open): Likewise.
* mu/imap.c (com_connect): Likewise.
* mh/mhn.c (split_args): Preserve quotes.
(mhn_compose_command): Handle type arguments (%a escape).
(mhn_show_command): Likewise.
(store_handler): Fix call to mh_getyn.
(edit_mime): Pass typeargs to mhn_compose_command.
Fix test for missing filename.
* mh/tests/ali.at (ali04): The test wrongly assumed that the
`root' group has some members.
* mh/tests/folder.at: Always sort the output from find.
* mh/tests/rmf.at: Likewise.
* mh/tests/mhn.at: Likewise.
Filter out timestamps from the tar output produced by mhn.
* tests/testsuite.at (MH_SETUP): Define moreproc.
* mh/tests/mhparam.at: Account for changes in mh_profile
Diffstat (limited to 'libmailutils')
-rw-r--r-- | libmailutils/mailbox/mbx_default.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmailutils/mailbox/mbx_default.c b/libmailutils/mailbox/mbx_default.c index f44bbefe5..05563041d 100644 --- a/libmailutils/mailbox/mbx_default.c +++ b/libmailutils/mailbox/mbx_default.c @@ -136,14 +136,13 @@ mu_folder_directory () int mu_construct_user_mailbox_url (char **pout, const char *name) { - int rc; const char *pat = mu_mailbox_url (); const char *env[3]; struct mu_wordsplit ws; env[0] = "user"; env[1] = (char*) name; - env[3] = NULL; + env[2] = NULL; ws.ws_env = env; if (mu_wordsplit (pat, &ws, MU_WRDSF_NOSPLIT | MU_WRDSF_NOCMD | @@ -162,7 +161,7 @@ mu_construct_user_mailbox_url (char **pout, const char *name) mu_wordsplit_free (&ws); if (!*pout) return ENOMEM; - return rc; + return 0; } /* Is this a security risk? */ |