diff options
author | James Bursa <james@zamez.org> | 2007-01-20 22:58:51 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-01-22 21:41:21 +0100 |
commit | c57c54983f560848ab6018a962762676fc9c7e6c (patch) | |
tree | 1ea86a2dd0605689bf746f7d8451c01789f18aad /fs | |
parent | 56d696e3ba23d39d0383beab744e6adae57edc77 (diff) |
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: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'fs')
-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 bbfc8625927..b9b2b27b68c 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 |