mh: open mailboxes in read-only mode unless the requested operation mandates otherwise.
* mh/mhn.c: Open mailbox in read-only mode. * mh/mhseq.c: Likewise. * mh/scan.c: Likewise. * mh/pick.c: If sequences are given, open mailbox for RW, otherwise open it for reading only. * testsuite/testsuite.inc (MUT_MBCHMOD): New macro. (MUT_MBCOPY): Take optional third argument - mailbox mode. * mh/tests/mhl.at: Make sure mailboxes are r/o. * mh/tests/mhn.at: Likewise. * mh/tests/mhseq.at: Likewise. * mh/tests/scan.at: Likewise.
Showing
9 changed files
with
83 additions
and
47 deletions
-
Please register or sign in to post a comment