Revision: 3058
http://jnode.svn.sourceforge.net/jnode/?rev=3058&view=rev
Author: lsantha
Date: 2007-01-09 07:20:43 -0800 (Tue, 09 Jan 2007)
Log Message:
-----------
Applied bugfix by alea.
Modified Paths:
--------------
trunk/fs/src/fs/org/jnode/fs/jfat/FatDirectory.java
Modified: trunk/fs/src/fs/org/jnode/fs/jfat/FatDirectory.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/jfat/FatDirectory.java 2007-01-09 08:51:34 UTC (rev 3057)
+++ trunk/fs/src/fs/org/jnode/fs/jfat/FatDirectory.java 2007-01-09 15:20:43 UTC (rev 3058)
@@ -105,7 +105,11 @@
if ( index > MAXENTRIES )
throw new IOException ( "Directory is full" );
getChain().allocateAndClear ( 1 );
- continue;
+ //restart the search, fixes infinite loop
+ //TODO review it for a better solution
+ i = 0;
+ index = 0;
+ continue;
}
if ( entry.isFreeDirEntry() || entry.isLastDirEntry() ) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|