To reproduce, I just uploaded mksh_39.3.20110218-1.dsc and you can
run DEB_BUILD_OPTIONS=mksh-static=klibc,dietlibc,eglibc dpkg-buildpackage
-rfakeroot to verify it, once you have mkstemp(3). (I will probably send
a smaller implementation of that in, later.) I have that and the open fix and
the m68k patch applied, nothing else… where did my bug go?

ObQuestion: what’s the legal (copyright/trademark) status of the Atari logo
(the one in rainbow colours, with three things going up, right and left “leg”
looking like an umbrella stand’s)?