Hi Michael,
> The patch looks incorrect to me. In case you've not noticed, we'd
> still have the same problem if do_edit() fails [...]
You are right, I missed it. Your patch is correct while the original
one is not quite so.
--
Best regards,
Aleksander Alekseev