diff options
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r-- | mbbsd/fav.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c index bbb4cfbc..eb1a838d 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -454,6 +454,15 @@ int fav_save(void) return -1; write_favrec(fd, fp); close(fd); + + /* dirty hack, i hope will find out the reasion */ + if (dashs(buf) == 0) { + FILE *dirty = fopen("dirtyhack.check", "a"); + fprintf(dirty, "[%s] fp:%x datatail:%d - %s", cuser.userid, (int)fp, fp->DataTail, ctime(&now)); + fclose(dirty); + return -1; + } + Rename(buf, buf2); return 0; } |