summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-06-03 21:45:49 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-06-03 21:45:49 +0000
commitaa61bbaaaa24a38eba2ed09a1939600766122e40 (patch)
tree9026506715d4db445649084de1b8cf446bf9b01b /mail
parent34a5e54496a8ac24c1131ea1423f70f959372c7a (diff)
downloadmailutils-aa61bbaaaa24a38eba2ed09a1939600766122e40.tar.gz
mailutils-aa61bbaaaa24a38eba2ed09a1939600766122e40.tar.bz2
Minor fix
Diffstat (limited to 'mail')
-rw-r--r--mail/file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/file.c b/mail/file.c
index 2fc5ccf25..d1ced5b25 100644
--- a/mail/file.c
+++ b/mail/file.c
@@ -79,15 +79,16 @@ mail_file (int argc, char **argv)
url_t url;
mailbox_t newbox = NULL;
char *name = mail_expand_name (argv[1]);
+ int status;
if (!name)
return 1;
- if (mailbox_create_default (&newbox, name) != 0
- || mailbox_open (newbox, MU_STREAM_RDWR) != 0)
+ if ((status = mailbox_create_default (&newbox, name)) != 0
+ || (status = mailbox_open (newbox, MU_STREAM_RDWR)) != 0)
{
mailbox_destroy (&newbox);
- util_error(_("can't open mailbox %s: %s"), name, mu_strerror (errno));
+ util_error(_("can't open mailbox %s: %s"), name, mu_strerror (status));
free (name);
return 1;
}

Return to:

Send suggestions and report system problems to the System administrator.