lkml.org 
[lkml]   [2004]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/4] Move check for invalid chars to vfat_valid_longname()
From
Date
lsr@neapel230.server4you.de writes:

> + /* check for invalid characters */
> + for (p = name; p < name + len; p++) {
> + if (*p < 0x0020 || strchr("*?<>|\":\\", *p) != NULL)
> + return 0;
> + }
> +
> return 1;
> }
>
> @@ -636,10 +627,6 @@ static int vfat_build_slots(struct inode
> if (res < 0)
> goto out_free;
>
> - res = vfat_is_used_badchars(uname, ulen);
> - if (res < 0)
> - goto out_free;
> -
> res = vfat_create_shortname(dir, sbi->nls_disk, uname, ulen,
> msdos_name, &lcase);
> if (res < 0)

Some encodings is using the area of ascii code as second byte.
So, it can't.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog