Browse Source

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>

Alexander Korolkov 13 years ago
parent
commit
f0a42d0634
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/check.c

+ 4 - 5
src/check.c

@@ -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;
 }