Mailing List archive

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

[vdr] Re: SAMBA incompatibilities with VFAT=1 directory names



> Can you please try this patch and let me know if it works as expected?
> I'd like to include it in today's 1.0.1 release...
> 
> --- recording.c 2002/04/01 10:51:23
> +++ recording.c 2002/04/21 13:55:45
> @@ -222,7 +222,6 @@
>                    case '+':
>                    case ',':
>                    case '-':
> -                  case '.':
>                    case ';':
>                    case '=':
>                    case '0' ... '9':
> @@ -237,7 +236,8 @@
>                    case ' ': *p = '_'; break;
>                    case '~': *p = '/'; break;
>                    // characters that have to be encoded:
> -                  default: {
> +                  default:
> +                    if (*p != '.' || !*(p + 1) || *(p + 1) == '~') {
//
> Windows can't handle '.' at the end of directory names
>                         int l = p - s;
>                         s = (char *)realloc(s, strlen(s) + 10);
>                         p = s + l;
> 
> 
> Klaus
> --

I just tried the patch with an instant recording and it worked
perfectly.  The instant recording had a nice #2E at the end instead of a
".".  When viewing the recording from a Windows machine I could
successfully reach the 001.vdr.  

Thank you very much Klaus, 

Simon 




Home | Main Index | Thread Index