shithub: riscv

Download patch

ref: c5c159b17a09fd46e0ad39d9049545525a2f1a62
parent: 721b141438589bbf0521832760e28a2f496ef83f
author: cinap_lenrek <[email protected]>
date: Mon Feb 5 14:16:29 EST 2018

upas/fs: fix imap atom quoting (thanks Piotr Kubaj)

--- a/sys/src/cmd/upas/fs/imap.c
+++ b/sys/src/cmd/upas/fs/imap.c
@@ -79,6 +79,8 @@
 		return Qquote;
 	if(r <= ' ')
 		return Qquote;
+	if(r == '(' || r == ')' || r == '{' || r == '%' || r == '*' || r == ']')
+		return Qquote;
 	if(r == '\\' || r == '"')
 		return Qbackslash;
 	return Qok;