shithub: drawterm

Download patch

ref: 72da0579a82cc83574d6f5eb7710d702d6df865e
parent: 691adfab413b4776a028ee94016fcaf1fa519c6f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Apr 19 18:42:50 EDT 2016

don't leak /env/fn#server into the environment when using aan

--- a/cpu.c	Sun Apr 17 15:31:08 2016
+++ b/cpu.c	Tue Apr 19 18:42:50 2016
@@ -88,9 +88,9 @@
 "	rfork n\n"
 "	fn server {\n"
 "		echo -n aanserver $netdir >/proc/$pid/args\n"
+"		rm -f /env/^'fn#server'\n"
 "		. <{n=`{read} && ! ~ $#n 0 && read -c $n} >[2=1]\n"
 "	}\n"
-"	rm -f /env/^'fn#aanserver'\n"
 "	exec tlssrv -A /bin/rc -c server\n"
 "	exit\n"
 "}\n";