diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-05 09:15:29 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-05 09:15:29 +0000 |
commit | e2a9edf210f40519169a1169801df56fcb4ef0fc (patch) | |
tree | 7f7503780992d525b6eec18f1d9a2aff89dc67f9 /src/prefs.c | |
parent | 3ec864159a1792df642a75611363c39fb1fd1cd3 (diff) |
added rename_force().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@470 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prefs.c b/src/prefs.c index 6dfc275f..7fb6f666 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -328,7 +328,7 @@ gint prefs_file_close(PrefFile *pfile) if (is_file_exist(path)) { bakpath = g_strconcat(path, ".bak", NULL); - if (rename(path, bakpath) < 0) { + if (rename_force(path, bakpath) < 0) { FILE_OP_ERROR(path, "rename"); unlink(tmppath); g_free(path); @@ -338,7 +338,7 @@ gint prefs_file_close(PrefFile *pfile) } } - if (rename(tmppath, path) < 0) { + if (rename_force(tmppath, path) < 0) { FILE_OP_ERROR(tmppath, "rename"); unlink(tmppath); g_free(path); |