Fixing "Too many files need repair" error during fsck.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
Paul Rupe 2009-05-19 10:37:52 +02:00 committed by Daniel Baumann
parent 7c16098be2
commit ecd15e86e8

View File

@ -345,7 +345,7 @@ static void auto_rename(DOS_FILE *file)
number = 0;
while (1) {
sprintf(file->dir_ent.name, "FSCK%04d", number / 1000);
sprintf(file->dir_ent.name, "%03d", number % 1000);
sprintf(file->dir_ent.ext, "%03d", number % 1000);
for (walk = first; walk; walk = walk->next)
if (walk != file && !strncmp(walk->dir_ent.name,file->dir_ent.
name,MSDOS_NAME)) break;