[glib] gio: Clean up trashinfo file if trashing fails



commit e2fcb77cb04b4b86768d56d8fccfb36f1a5d9451
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Wed Oct 30 20:34:14 2013 +0200

    gio: Clean up trashinfo file if trashing fails
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687202

 gio/glocalfile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index e28a8be..b9bec8a 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -2083,6 +2083,8 @@ g_local_file_trash (GFile         *file,
     {
       int errsv = errno;
 
+      g_unlink (infofile);
+
       g_free (topdir);
       g_free (trashname);
       g_free (infofile);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]