ref: a32f464057acca8738c631add1f8569691b179aa
parent: 8e322e5a5b60c290f6a7cc65f8113bafae36a1e7
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Oct 10 14:47:08 EDT 2025
upas/fs: make '-f' flag consistent with 'open' message we would pass "mbox" to newmbox with the '-f' flag, but 'nil' when using the open messge, which could lead to different mailbox indexes being used for the same mailbox depending on how it got opened.
--- a/sys/src/cmd/upas/fs/fs.c
+++ b/sys/src/cmd/upas/fs/fs.c
@@ -337,9 +337,8 @@
mboxfile = mbox;
}
- if(mboxfile != nil)
- if(err = newmbox(mboxfile, "mbox", 0, nil))
- sysfatal("opening %s: %s", mboxfile, err);
+ if(err = newmbox(mboxfile, nil, 0, nil))
+ sysfatal("opening %s: %s", mboxfile, err);
switch(rfork(RFFDG|RFPROC|RFNAMEG|RFNOTEG|RFREND)){
case -1:
--
⑨