shithub: riscv

Download patch

ref: 1c862bd24ed0af15f2797d1193739685fda2d61c
parent: 232382bfc14f0493705ef1e64a87a879f148c321
author: Alex Musolino <alex@musolino.id.au>
date: Tue Jun 12 16:04:16 EDT 2018

upas/nedmail: marshal(1) options -n and -8 are mutually exclusive

--- a/sys/src/cmd/upas/ned/nedmail.c
+++ b/sys/src/cmd/upas/ned/nedmail.c
@@ -2327,8 +2327,6 @@
 	}
 
 	ai = 1;
-	av[ai++] = "-8";
-
 	subject = nil;
 	if(m->subject){
 		av[ai++] = "-s";
@@ -2346,6 +2344,8 @@
 	av[ai++] = rooted(extendp(m->path, "raw"));
 	if(strchr(c->av[0], 'M') == nil)
 		av[ai++] = "-n";
+	else
+		av[ai++] = "-8";
 	for(i = 1; i < c->an && ai < nelem(av)-1; i++)
 		av[ai++] = c->av[i];
 	av[ai] = 0;