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)
commitf56d4fd9c501664561b0cc784005381f76d60121
tree92be076383dfb6ed54f58323d4e2b27fe461f885
parent58bee44cba7b09f4c2c56417e9441fece31e4f6e
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