From f0a42d0634302c3fbdbe4bb717b0a9a17235a828 Mon Sep 17 00:00:00 2001 From: Alexander Korolkov Date: Sun, 12 Sep 2010 09:24:47 +0200 Subject: [PATCH] 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 --- src/check.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/check.c b/src/check.c index 0378da5..b8a2869 100644 --- a/src/check.c +++ b/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; }