config rewrites not posix safe
Upstream forwarding of an ubuntu package patch:
gajim does not flush or sync configuration file rewrites, which it does frequently (separate report). This can lead to data loss with ext4 and potentially other filesystems.
I believe the attached patch should correct this. I'm currently using it without issue here.
Original report: https://bugs.launchpad.net/ubuntu/+source/gajim/+bug/349661
OS version: Ubuntu 9.04, 9.10, 10.04