summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-01-09 13:19:41 (GMT)
committervincentdarley <vincentdarley>2004-01-09 13:19:41 (GMT)
commitcad6d20809446ccdea12285a5e4e611558e8c7dd (patch)
tree79db28188e15de5b994a34f4b4b026eb20991b79
parent76b1e24ed77f737f4f52f13fa752a6e3d1f2a04a (diff)
downloadtcl-cad6d20809446ccdea12285a5e4e611558e8c7dd.zip
tcl-cad6d20809446ccdea12285a5e4e611558e8c7dd.tar.gz
tcl-cad6d20809446ccdea12285a5e4e611558e8c7dd.tar.bz2
vfs code tclfinalizefilesystem fix
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclIOUtil.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c33865..76af10e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-09 Vince Darley <vincentdarley@users.sourceforge.net>
+
+ * generic/tclIOUtil.c: fix to infinite loop in
+ TclFinalizeFilesystem [Bug 873311]
+
2003-12-17 Daniel Steffen <das@users.sourceforge.net>
* generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bug
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index 3dcb564..0ca497f 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.77.2.13 2003/12/17 09:32:35 vasiljevic Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.77.2.14 2004/01/09 13:19:42 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -714,7 +714,7 @@ FsUpdateCwd(cwdObj)
void
TclFinalizeFilesystem()
{
- FilesystemRecord *fsRecPtr, *tmpFsRecPtr;
+ FilesystemRecord *fsRecPtr;
/*
* Assumption that only one thread is active now. Otherwise
@@ -734,7 +734,7 @@ TclFinalizeFilesystem()
fsRecPtr = filesystemList;
while (fsRecPtr != NULL) {
- tmpFsRecPtr = filesystemList->nextPtr;
+ FilesystemRecord *tmpFsRecPtr = fsRecPtr->nextPtr;
if (fsRecPtr->fileRefCount <= 0) {
/* The native filesystem is static, so we don't free it */
if (fsRecPtr != &nativeFilesystemRecord) {