Skip to content

Commit

Permalink
[PATCH] adfs: fix filename handling
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jamesbursa authored and Linus Torvalds committed Jan 6, 2007
1 parent 6c5f8cc commit 3223ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/adfs/dir_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3223ea8

Please sign in to comment.