aboutsummaryrefslogtreecommitdiffstats
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
parent128a31facdd7835962ad73be938a413928dc1210 (diff)
downloadgsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.tar
gsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.tar.gz
gsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.tar.bz2
gsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.tar.lz
gsoc2013-evolution-910232976aad247fb9f86229a8b6a95c231284ce.tar.xz
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
-rw-r--r--plugins/save-attachments/ChangeLog4
-rw-r--r--plugins/save-attachments/save-attachments.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/save-attachments/ChangeLog b/plugins/save-attachments/ChangeLog
index 803d29a762..d1182867a9 100644
--- a/plugins/save-attachments/ChangeLog
+++ b/plugins/save-attachments/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-07 Not Zed <NotZed@Ximian.com>
+
+ * save-attachments.c (save_part): fix the access() call test.
+
2005-01-04 Philip Van Hoof <pvanhoof@gnome.org>
* save-attachments.c: Use standard error messages
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)