From: James Bursa Fix filenames on adfs discs being terminated at the first character greater than 128 (adfs filenames are Latin 1). I saw this problem when using a loopback adfs image on a 2.6.17-rc5 x86_64 machine, and the patch fixed it there. Signed-off-by: Andrew Morton --- fs/adfs/dir_f.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN fs/adfs/dir_f.c~adfs-fix-filename-handling fs/adfs/dir_f.c --- a/fs/adfs/dir_f.c~adfs-fix-filename-handling +++ a/fs/adfs/dir_f.c @@ -53,7 +53,7 @@ static inline int adfs_readname(char *bu { char *old_buf = buf; - while (*ptr >= ' ' && maxlen--) { + while ((unsigned char)*ptr >= ' ' && maxlen--) { if (*ptr == '/') *buf++ = '.'; else _