shithub: riscv

Download patch

ref: 273c4bff7ae59ff33e0b58c95967397090fd3864
parent: bee6271ae1c4f50180f52f6dc11ce23337467722
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 29 13:29:01 EST 2021

Mail: fix inverted reply-all condition

--- a/sys/src/cmd/upas/Mail/mesg.c
+++ b/sys/src/cmd/upas/Mail/mesg.c
@@ -300,7 +300,7 @@
 static void
 reply(Mesg *m, char **f, int nf)
 {
-	if(nf >= 1 &&  strcmp(f[0], "all") != 0)
+	if(nf >= 1 &&  strcmp(f[0], "all") == 0)
 		compose(m->replyto, m, 1);
 	else
 		compose(m->replyto, m, 0);