ref: 72da0579a82cc83574d6f5eb7710d702d6df865e
parent: 691adfab413b4776a028ee94016fcaf1fa519c6f
author: cinap_lenrek <[email protected]>
date: Tue Apr 19 20:42:50 EDT 2016
don't leak /env/fn#server into the environment when using aan
--- a/cpu.c
+++ b/cpu.c
@@ -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";