dosfsck: don't complain about bad filenames when short filename

contains 7 or more characters with codes 128-255, see Debian
bug #596327.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
Alexander Korolkov 2010-09-12 09:24:47 +02:00 committed by Daniel Baumann
parent 0113c5bd14
commit f0a42d0634

View File

@ -304,11 +304,10 @@ static int bad_name(DOS_FILE *file)
if (atari_format && suspicious)
return 1;
/* Only complain about too much suspicious chars in interactive mode,
* never correct them automatically. The chars are all basically ok, so we
* shouldn't auto-correct such names. */
if (interactive && suspicious > 6)
return 1;
/* Under MS-DOS and Windows, chars >= 128 in short names are valid
* (but these characters can be visualised differently depending on
* local codepage: CP437, CP866, etc). The chars are all basically ok,
* so we shouldn't auto-correct such names. */
return 0;
}