From 31fbb20a65e289952f077114815c98701c75707f Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 16 Apr 2002 16:38:25 +0000 Subject: fix bug git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@120 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mbbsd/cache.c b/mbbsd/cache.c index cbb042f2..b7a485ad 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -1,4 +1,4 @@ -/* $Id: cache.c,v 1.16 2002/04/16 14:55:31 in2 Exp $ */ +/* $Id: cache.c,v 1.17 2002/04/16 16:38:25 in2 Exp $ */ #include #include #include @@ -1056,6 +1056,7 @@ int updatemdcache(const char *CPATH, const char *fpath) /* md is full? */ close(targetfd); unlink(cpath); + lseek(sourcefd, 0, SEEK_SET); return sourcefd; } close(sourcefd); -- cgit v1.2.3