Finalize fixing of netconfig loosing incident
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 1 Nov 2010 09:24:51 +0000 (10:24 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 1 Nov 2010 09:24:51 +0000 (10:24 +0100)
commite5704e28c3be6d94b9e8f498ce66012f237fcf14
tree92be076383dfb6ed54f58323d4e2b27fe461f885
parentf8a49147c6558f40463dba51ab32dce2fbacbdf0
Finalize fixing of netconfig loosing incident

 * need to set & check errno that tells us whether our tempfile was fresh created or already there
 * remove tmpfile on error
 * don't use fopen() because we can't specify the flags we need for that
 * ftruncate() the tempfile at the right place
citadel/modules/network/serv_network.c