diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-06 00:00:14 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-06 00:13:09 +0200 |
commit | d8197fdeba9b564ed665c739d725578a9f4a4522 (patch) | |
tree | 32d8217ae1b425d537fed65c51b1a338c525a029 /src | |
parent | 1531c2d5342372545a323ba9cb31df148c522122 (diff) | |
download | mailfromd-d8197fdeba9b564ed665c739d725578a9f4a4522.tar.gz mailfromd-d8197fdeba9b564ed665c739d725578a9f4a4522.tar.bz2 |
Bugfix
* src/builtin/mbox.bi (mailbox_open): Fix the use of the perms
argument.
* doc/functions.texi: Document last argument to mailbox_open.
Diffstat (limited to 'src')
-rw-r--r-- | src/builtin/mbox.bi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtin/mbox.bi b/src/builtin/mbox.bi index 3d556818..a5f2c4c2 100644 --- a/src/builtin/mbox.bi +++ b/src/builtin/mbox.bi @@ -140,7 +140,7 @@ MF_DEFUN(mailbox_open, NUMBER, STRING url, OPTIONAL, STRING mode, STRING perms) #ifdef MU_STREAM_IRGRP int f; const char *p; - MF_ASSERT(mu_parse_stream_perm_string(&f, MF_OPTVAL(mode), &p) + MF_ASSERT(mu_parse_stream_perm_string(&f, MF_OPTVAL(perms), &p) == 0, mfe_range, /* FIXME: introduce mfe_inval? */ _("invalid permissions (near %s)"), p); |