Using "cat file| sed 'something' > file" in postinst-scripts is not good.
It can happen that the > is opening the file before the cat open it. Then
the file will be cleared.
A patch is attached. This also make the "if [ grep = ]" to "if $(grep -q )"
to check only the return code of sed not the output.
Original issue reported on code.google.com by Madu...@gmx.de on 21 Dec 2008 at 9:22
Original issue reported on code.google.com by
Madu...@gmx.de
on 21 Dec 2008 at 9:22Attachments: