[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: opendir() on VFAT



felsch@tu-harburg.de%INTERNET wrote:
> 
> Hi!
> 
> I've got a question to readdir() on NEWFATFS:
> Is it ok, that this function delivers lowercase filenames when reading
> it from VFAT? opendir() do the following check when opening a directory:
> 
>         /* test if the file system is case sensitive */
>         r = Dpathconf(name, 6);
>         if (r > 0)
>                 d->status = _NO_CASE;
>         else
>                 d->status = 0;
> 
> If status is _NO_CASE, readdir() lowers the filename before returing it.

I would say this is wrong. readdir() should only touch the filename
if Dpathconf mode 6 returns 1 (which is "insensitive").