]> code.citadel.org Git - citadel.git/commit
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)
commit58bee44cba7b09f4c2c56417e9441fece31e4f6e
tree2bbca76a8d09cf07c6e112f1c7bb2389520add8d
parent7a93aa6d6f13a994df970f6e9ac514445955d386
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