]> spindle.queued.net Git - midori/commit
Use g_file_set_contents to save 'config' with a temporary file
authorChristian Dywan <christian@twotoasts.de>
Thu, 10 Jun 2010 15:49:22 +0000 (17:49 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 10 Jun 2010 15:54:44 +0000 (17:54 +0200)
commitff6fec636700b71b296ebe5c2976b8cb7080d292
tree97a99f3b8d3199c0eea7de4785bb209297efd29c
parent5333845ba45e2c709e50418ee28310b9693b648f
Use g_file_set_contents to save 'config' with a temporary file

If the filesystem runs out of space and Midori tries to save
the 'config' file under that condition, the file is lost. To
avoid that, we use g_file_set_contents which writes a temporary
file first, at the cost of destroying symbolic links.
midori/sokoke.c