aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-attachments/save-attachments.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-02-07 15:09:30 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-02-07 15:09:30 +0800
commit910232976aad247fb9f86229a8b6a95c231284ce (patch)
tree9be431599ddc1592d8e1f97fe6c343d2d18d9ba0 /plugins/save-attachments/save-attachments.c
parent128a31facdd7835962ad73be938a413928dc1210 (diff)
downloadgsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.tar.gz
gsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.tar.zst
gsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.zip
fix the access() call test.
2005-02-07 Not Zed <NotZed@Ximian.com> * save-attachments.c (save_part): fix the access() call test. svn path=/trunk/; revision=28729
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)