shithub: riscv

Download patch

ref: c3938067180ed707828cdbcd0b2d430a13323dd9
parent: 4dcb3ce2ab2baca0b03a8f59389e46ff263e7641
author: Alex Musolino <alex@musolino.id.au>
date: Wed Apr 1 18:49:19 EDT 2020

upas/fs: fix sending of "delete" plumb messages

Broken by changeset 2cc069392228.

--- a/sys/src/cmd/upas/fs/mbox.c
+++ b/sys/src/cmd/upas/fs/mbox.c
@@ -1548,10 +1548,10 @@
 	a[ai-1].next = &a[ai];
 
 	a[++ai].name = "mailtype";
-	if(m->cstate & Cmod)
-		a[ai].value = "modify";
-	else if (!m->inmbox)
+	if(!m->inmbox)
 		a[ai].value = "delete";
+	else if(m->cstate & Cmod)
+		a[ai].value = "modify";
 	else
 		a[ai].value = "new";
 	a[ai-1].next = &a[ai];