summaryrefslogtreecommitdiffstats
path: root/mbbsd/fav.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r--mbbsd/fav.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index 5446a1ea..12aca076 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -445,14 +445,12 @@ int fav_save(void)
if (fp == NULL)
return -1;
cleanup();
- setuserfile(buf, FAV4".tmp");
- setuserfile(buf2, FAV4);
+ setuserfile(buf, FAV4);
fd = open(buf, O_CREAT | O_TRUNC | O_WRONLY, 0600);
if (fd < 0)
return -1;
write_favrec(fd, fp);
close(fd);
- Rename(buf, buf2);
return 0;
}
/* --- */