Prevent writing empty network configs Part II
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 30 Oct 2010 17:54:01 +0000 (19:54 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 1 Nov 2010 09:55:56 +0000 (10:55 +0100)
commite2b2cf3044f59b2ce6c29eec54f54ba90679784c
treeb09a4c31cdd34ee42b783a6306a1bec09277c400
parent88d3d7d7b0dad4f5a5e0d4594d7e732e57a21f0f
Prevent writing empty network configs Part II
 * writenfree_spoolcontrol_file ()
   - serialise into a StrBuf
   - write that to a tempfile in the netconfig directory
   - if we fail, abort & log error
   - if we succed use rename () to replace the original config file.
citadel/modules/network/serv_network.c