projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a89e99b
)
Make gtk-update-icon-cache not fall over leftover temp files
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 9 Apr 2015 00:30:26 +0000
(20:30 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 9 Apr 2015 00:34:08 +0000
(20:34 -0400)
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
patch
|
blob
|
history
diff --git
a/gtk/updateiconcache.c
b/gtk/updateiconcache.c
index 6944a07f555a2b122a3f98f685df3aa40ed1aa8f..e71d6fbebc99e1e4eba9dd08c96a962299c5d4d2 100644
(file)
--- 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);