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>
Sat, 30 Oct 2010 17:54:01 +0000 (19:54 +0200)
commitf8a49147c6558f40463dba51ab32dce2fbacbdf0
tree2bbca76a8d09cf07c6e112f1c7bb2389520add8d
parent138b9da992adddae517bfdb539f2a946e9f25e01
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