Commit c57c5498 authored by James Bursa's avatar James Bursa Committed by Adrian Bunk
Browse files

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: default avatarAdrian Bunk <bunk@stusta.de>
parent 56d696e3
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment