Noticed from www.linuxtoday.com that debian has fixed ed. Ed uses mktemp+fopen (buf.c:209) to create a temporary file. Fix would be to use mkstemp+fdopen.
*** Bug 223072 has been marked as a duplicate of this bug. ***
*** Bug 223076 has been marked as a duplicate of this bug. ***