projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4b33b2
)
Fix CID 1491381
author
Michael Rasmussen
<mir@datanom.net>
Thu, 9 Sep 2021 21:33:22 +0000
(23:33 +0200)
committer
Michael Rasmussen
<mir@datanom.net>
Thu, 9 Sep 2021 21:33:22 +0000
(23:33 +0200)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
src/common/file-utils.c
patch
|
blob
|
history
diff --git
a/src/common/file-utils.c
b/src/common/file-utils.c
index 28c66553ed20af8002f7a07229f9ef6732ab9b57..441d8fbd1caa0adc2d3fa484e9964145ad0726f3 100644
(file)
--- a/
src/common/file-utils.c
+++ b/
src/common/file-utils.c
@@
-310,7
+310,8
@@
gint copy_file(const gchar *src, const gchar *dest, gboolean keep_backup)
}
if (err) {
- claws_unlink(dest);
+ if (claws_unlink(dest) < 0)
+ FILE_OP_ERROR(dest, "claws_unlink");
if (dest_bak) {
if (rename_force(dest_bak, dest) < 0)
FILE_OP_ERROR(dest_bak, "rename");