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:56:06 +0000 (10:56 +0100)
commitfa19b57c6995999bc11bf7b502ba7cef8a46e02f
tree752dc32f37b4c7a5b17c236abd67f3d2bc1d88fe
parente2b2cf3044f59b2ce6c29eec54f54ba90679784c
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