Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3223ea8cca5936b8e78450dd5b8ba88372e9c0a8 Commit: 3223ea8cca5936b8e78450dd5b8ba88372e9c0a8 Parent: 6c5f8cc33eb2e10b6ab788bbe259fc142a068627 Author: James Bursa <[EMAIL PROTECTED]> AuthorDate: Fri Jan 5 16:36:28 2007 -0800 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Fri Jan 5 23:55:22 2007 -0800
[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 <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- 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 bbfc862..b9b2b27 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 - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html