aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/em-migrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-migrate.c b/mail/em-migrate.c
index 2f437a5ff2..8ea8d08248 100644
--- a/mail/em-migrate.c
+++ b/mail/em-migrate.c
@@ -1251,7 +1251,7 @@ cp (const char *src, const char *dest, gboolean show_progress)
if ((fd[0] = open (src, O_RDONLY)) == -1)
return -1;
- if ((fd[1] = open (dest, O_WRONLY | O_CREAT | O_EXCL, 0666)) == -1) {
+ if ((fd[1] = open (dest, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
errnosav = errno;
close (fd[0]);
errno = errnosav;