[Samba] Recent inability to view long filenames stored with scp via samba mount

Michael Lueck mlueck at lueckdatasystems.com
Fri Nov 8 20:52:07 UTC 2019


Greetings Jeremy,


Jeremy Allison wrote:
> In the code it's:
> 
>          for (i=1;i<128;i++) {
>                  if (i <= 0x1f) {
>                          /* Control characters. */
>                          char_flags[i] |= FLAG_ILLEGAL;
>                  }
> 
> 		....
> 
>                  if (strchr("*\\/?<>|\":", i)) {
>                          char_flags[i] |= FLAG_ILLEGAL;
>                  }
> 
> 		....
>          }


Excellent! Just what I was seeking!

> 
> but we must also mangle names ending in '.' and any
> names that match DOS reserved names of:
> 
> static const char * const reserved_names[] =
> { "AUX", "LOCK$", "CON", "COM1", "COM2", "COM3", "COM4",
>    "LPT1", "LPT2", "LPT3", "NUL", "PRN"
> 
> Not that your mp3 files would match those :-).


I have been tipped off not to get NULL as my vanity license plate! ;-)

"How a 'NULL' License Plate Landed One Hacker in Ticket Hell"
https://www.wired.com/story/null-license-plate-landed-one-hacker-ticket-hell/


I am thankful,

-- 
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/



More information about the samba mailing list