diff options
author | James Bursa <james@zamez.org> | 2007-01-06 01:36:28 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-06 08:55:22 +0100 |
commit | 3223ea8cca5936b8e78450dd5b8ba88372e9c0a8 (patch) | |
tree | 3b84970d50f9d2408a09cfcfdf886c7db905b314 /fs/adfs/dir_f.c | |
parent | [PATCH] atiixp: Old drivers/ide layer driver for the ATIIXP hang fix (diff) | |
download | linux-3223ea8cca5936b8e78450dd5b8ba88372e9c0a8.tar.xz linux-3223ea8cca5936b8e78450dd5b8ba88372e9c0a8.zip |
[PATCH] adfs: fix filename handling
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 <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/adfs/dir_f.c')
-rw-r--r-- | fs/adfs/dir_f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/adfs/dir_f.c b/fs/adfs/dir_f.c index bbfc86259272..b9b2b27b68c3 100644 --- a/fs/adfs/dir_f.c +++ b/fs/adfs/dir_f.c @@ -53,7 +53,7 @@ static inline int adfs_readname(char *buf, char *ptr, int maxlen) { char *old_buf = buf; - while (*ptr >= ' ' && maxlen--) { + while ((unsigned char)*ptr >= ' ' && maxlen--) { if (*ptr == '/') *buf++ = '.'; else |