mirror of
https://github.com/znc/znc.git
synced 2026-05-05 21:12:37 +02:00
The old code created a copy of the config file before writing a new version. This backup is now gone. With this patch the config is written to a temporary file znc.conf~ and then fsync()d to make sure the data safely is on the disk. Then the real config file znc.conf is overwritten with this temporary file via a rename() call. This should be safer than the old way, plus it gets rid of a unneeded file. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1432 726aef4b-f618-498e-8847-2d620e286838
47 KiB
47 KiB