aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 734c3548..d40e4a21 100644
--- a/src/main.c
+++ b/src/main.c
@@ -212,7 +212,7 @@ int main(int argc, char *argv[])
/* backup if old rc file exists */
if (is_file_exist(RC_DIR)) {
- if (rename(RC_DIR, RC_DIR ".bak") < 0)
+ if (rename_force(RC_DIR, RC_DIR ".bak") < 0)
FILE_OP_ERROR(RC_DIR, "rename");
}
@@ -258,8 +258,9 @@ int main(int argc, char *argv[])
remove_all_files(get_mime_tmp_dir());
if (is_file_exist(RC_DIR G_DIR_SEPARATOR_S "sylpheed.log")) {
- if (rename(RC_DIR G_DIR_SEPARATOR_S "sylpheed.log",
- RC_DIR G_DIR_SEPARATOR_S "sylpheed.log.bak") < 0)
+ if (rename_force
+ (RC_DIR G_DIR_SEPARATOR_S "sylpheed.log",
+ RC_DIR G_DIR_SEPARATOR_S "sylpheed.log.bak") < 0)
FILE_OP_ERROR("sylpheed.log", "rename");
}
set_log_file(RC_DIR G_DIR_SEPARATOR_S "sylpheed.log");