diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-04-08 20:30:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-04-08 20:34:08 -0400 |
commit | 096b49013acb8cebffde1f857ee63aa83c247839 (patch) | |
tree | ae51b6e267cb0ee69f05c1f18672dcb93f6f4901 /gtk/updateiconcache.c | |
parent | a89e99b0be15a1bfb401810a74d508b008459332 (diff) | |
download | gtk+-096b49013acb8cebffde1f857ee63aa83c247839.tar.gz |
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
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r-- | gtk/updateiconcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |