summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-06 11:22:17 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-06 11:22:17 +0800
commit32c5be9d2f09b62a67b31f92df953418cc186619 (patch)
tree73f20142bde77582b9d05155b50747434d09c992 /mbbsd
parent7cb379c129b8e3c86373856cf6b7b7b11215a5a9 (diff)
downloadpttbbs-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.c9
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;
}