[gnome-desktop] thumbnail: Don't fail after successfully creating the cache directory



commit ef4734f80d7862426714d3720700cf4526499997
Author: Sebastian Keller <sebastian-keller gmx de>
Date:   Fri Dec 5 00:13:54 2014 +0100

    thumbnail: Don't fail after successfully creating the cache directory
    
    g_mkdir_with_parents returns 0 on success or if the directory already
    exists, which caused the code to go into the failure path rather than
    generating the thumbnail.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684026

 libgnome-desktop/gnome-desktop-thumbnail.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c
index 0d251d5..04dc660 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail.c
@@ -1500,7 +1500,7 @@ save_thumbnail (GdkPixbuf  *pixbuf,
 
   dirname = g_path_get_dirname (path);
 
-  if (!g_mkdir_with_parents (dirname, 0700))
+  if (g_mkdir_with_parents (dirname, 0700) != 0)
     goto out;
 
   tmp_path = g_strconcat (path, ".XXXXXX", NULL);


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