aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-attachments/save-attachments.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/save-attachments/save-attachments.c')
-rw-r--r--plugins/save-attachments/save-attachments.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/save-attachments/save-attachments.c b/plugins/save-attachments/save-attachments.c
index 9b6f4e6ebc..0cf8436273 100644
--- a/plugins/save-attachments/save-attachments.c
+++ b/plugins/save-attachments/save-attachments.c
@@ -220,7 +220,7 @@ save_part(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, void *d)
* the POSIX access-call should suffice for checking the file existence.
*/
- if (access (save, F_OK))
+ if (access(save, F_OK) == 0)
doit = e_error_run(NULL, E_ERROR_ASK_FILE_EXISTS_OVERWRITE, save, NULL) == GTK_RESPONSE_OK;
if (doit)