[gtk+/gtk-3-16] Make gtk-update-icon-cache not fall over leftover temp files
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] Make gtk-update-icon-cache not fall over leftover temp files
- Date: Thu, 9 Apr 2015 00:35:20 +0000 (UTC)
commit 3a40225872c3a2d819879010415b88e4a76c4909
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 8 20:30:26 2015 -0400
Make gtk-update-icon-cache not fall over leftover temp files
This is a followup to 0fd185fa6de2a89c11b4a28. There is no
good reason to only try again if --force is passed. Do it
always.
See
https://bugzilla.redhat.com/show_bug.cgi?id=1194957
gtk/updateiconcache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 6944a07..e71d6fb 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -1491,7 +1491,7 @@ build_cache (const gchar *path)
opentmp:
if ((fd = g_open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
{
- if (force_update && retry_count == 0)
+ if (retry_count == 0)
{
retry_count++;
g_remove (tmp_cache_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]