From 910232976aad247fb9f86229a8b6a95c231284ce Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 7 Feb 2005 07:09:30 +0000 Subject: fix the access() call test. 2005-02-07 Not Zed * save-attachments.c (save_part): fix the access() call test. svn path=/trunk/; revision=28729 --- plugins/save-attachments/save-attachments.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/save-attachments/save-attachments.c') 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) -- cgit