commit 05028053607cc909644964f120eabd9b783097ba
Author: Hector Martin <[email protected]>
Date: Tue Oct 20 19:17:46 2009 +0200
Create 0-byte iTunesDB instead of deleting it
src/itdb_itunesdb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 52a819a..a750892 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -5763,7 +5763,7 @@ gboolean itdb_write (Itdb_iTunesDB *itdb, GError **error)
* empty iTunesDB
*/
itunes_filename = g_build_filename (itunes_path, "iTunesDB", NULL);
- g_unlink (itunes_filename);
+ g_file_set_contents(itunes_filename, NULL, 0, NULL);
g_free (itunes_filename);
}
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2