From 8f1954c0dd4ca231d6904fbbd788dbe40ef284e3 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Wed, 13 Jul 2022 21:01:11 +0000 Subject: [PATCH 1/3] upas/Mail: check if plumb attrs are nil --- sys/src/cmd/upas/Mail/mbox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/cmd/upas/Mail/mbox.c b/sys/src/cmd/upas/Mail/mbox.c index 60fdc7dee..b7bdeda83 100644 --- a/sys/src/cmd/upas/Mail/mbox.c +++ b/sys/src/cmd/upas/Mail/mbox.c @@ -802,6 +802,8 @@ changemesg(Plumbmsg *pm) digest = plumblookup(pm->attr, "digest"); action = plumblookup(pm->attr, "mailtype"); + if(digest == nil || action == nil) + return; if(strcmp(action, "new") == 0){ if((m = load(pm->data, digest, 1)) == nil) return; From ce2ad9701d018dcff87ecabf1038bb202ea39a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Thu, 14 Jul 2022 01:06:52 +0000 Subject: [PATCH 2/3] =?UTF-8?q?imx8:=20gic:=20irqenable=20=E2=86=92=20intr?= =?UTF-8?q?enable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys/src/9/imx8/gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/imx8/gic.c b/sys/src/9/imx8/gic.c index 6c3052e1d..f96a04d5d 100644 --- a/sys/src/9/imx8/gic.c +++ b/sys/src/9/imx8/gic.c @@ -265,7 +265,7 @@ intrenable(int irq, void (*f)(Ureg*, void*), void *a, int tbdf, char *) prio = 0x80; intid = irq; if((v = xalloc(sizeof(Vctl))) == nil) - panic("irqenable: no mem"); + panic("intrenable: no mem"); v->irq = irq; v->intid = intid; v->f = f; From 1c585c2cc2404281311525dd26a80c8935f6332d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Thu, 14 Jul 2022 21:12:37 +0000 Subject: [PATCH 3/3] sam(1): clarify "" works on dot just like "look" --- sys/man/1/sam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/man/1/sam b/sys/man/1/sam index f107b3c79..e197c0c4c 100644 --- a/sys/man/1/sam +++ b/sys/man/1/sam @@ -835,8 +835,10 @@ used. The snarf buffer is unaffected. .TP .B -Exchange snarf buffers with +Exchange dot with snarf buffer of .IR rio . +If dot is the null string, the text in the snarf buffer is +used. .TP .BI / regexp Search forward for the next match of the last regular expression