diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-06 11:22:17 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-06 11:22:17 +0800 |
commit | 32c5be9d2f09b62a67b31f92df953418cc186619 (patch) | |
tree | 73f20142bde77582b9d05155b50747434d09c992 /mbbsd | |
parent | 7cb379c129b8e3c86373856cf6b7b7b11215a5a9 (diff) | |
download | pttbbs-32c5be9d2f09b62a67b31f92df953418cc186619.tar pttbbs-32c5be9d2f09b62a67b31f92df953418cc186619.tar.gz pttbbs-32c5be9d2f09b62a67b31f92df953418cc186619.tar.bz2 pttbbs-32c5be9d2f09b62a67b31f92df953418cc186619.tar.lz pttbbs-32c5be9d2f09b62a67b31f92df953418cc186619.tar.xz pttbbs-32c5be9d2f09b62a67b31f92df953418cc186619.tar.zst pttbbs-32c5be9d2f09b62a67b31f92df953418cc186619.zip |
dirty hack
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1579 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-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; } |