diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-03 21:45:49 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-03 21:45:49 +0000 |
commit | aa61bbaaaa24a38eba2ed09a1939600766122e40 (patch) | |
tree | 9026506715d4db445649084de1b8cf446bf9b01b /mail | |
parent | 34a5e54496a8ac24c1131ea1423f70f959372c7a (diff) | |
download | mailutils-aa61bbaaaa24a38eba2ed09a1939600766122e40.tar.gz mailutils-aa61bbaaaa24a38eba2ed09a1939600766122e40.tar.bz2 |
Minor fix
Diffstat (limited to 'mail')
-rw-r--r-- | mail/file.c | 7 |
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; } |