From 096b49013acb8cebffde1f857ee63aa83c247839 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 8 Apr 2015 20:30:26 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 6944a07f55..e71d6fbebc 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); -- 2.30.2