[Samba] Re: String overflow in safe_strcpy .

Herb Lewis hlewis at panasas.com
Tue Jul 20 17:07:45 GMT 2004


you can change "mangle prefix" to specify the number of characters you
want to stay the same. Just remember the more letters that remain the
same the more likely you will get a collision and slow things down.

Carl Matthews wrote:
> Is there another way to make shares readable to 16 bit apps that use the 
> 8.3 filename. because with out specifying "mangling method = hash" the 
> file names are completly mangled and only the first letter remains the 
> same. Where as "mangling method = hash" only mangles the last 3 letters.
> 
> Carl.
> 
> Carl Matthews wrote:
> 
>> Hi Jeremy,
>>
>> Sorry for not replying sooner, ive attached my config file.
>>
>> as a quick test,
>>
>> I created a folder called : "Test Directory That Is Long"
>> under which i created a folder called "This folder is long too"
>> and a file called "This Folder is long.txt"
>>
>> and this gives me the string errors.
>>
>> Thanks.
>>
>>
>> Jeremy Allison wrote:
>>
>>> On Wed, Jul 14, 2004 at 11:03:26PM +0100, Carl wrote:
>>>
>>>> Just Installed 3.0.5rc1 and the problem persists unfortunately,
>>>
>>>
>>>
>>>
>>> Ok, can you give me the smb.conf file and the directory and
>>> filenames you're using. I'll see if I can reproduce with the
>>> latest SVN code.
>>>
>>> Thanks,
>>>
>>>     Jeremy.
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> # Samba config file created using SWAT
>> # from 0.0.0.0 (0.0.0.0)
>> # Date: 2004/06/23 10:15:40
>>
>> # Global parameters
>> [global]
>>     server string = Mandrake1
>>     netbios aliases = FC1
>>     password server = None
>>     guest account = mleall
>>     username map = /etc/samba/smbusers
>>     log level = 0
>>     log file = /var/log/samba/%m.log
>>     max log size = 500
>>     name resolve order = wins lmhosts host bcas
>>     deadtime = 15
>>     socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>>     load printers = No
>>     mangling method = hash
>>     preferred master = Yes
>>     domain master = No
>>     dns proxy = No
>>     wins support = Yes
>>     oplock break wait time = 100
>>     ldap ssl = no
>>     valid users = @MLE-ALL
>>     create mask = 0775
>>     directory mask = 0775
>>     guest ok = Yes
>>     dos filemode = Yes
>>
>>
>> [NET-Eng]
>>     comment = Product Design By Genius
>>     path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
>>     write list = @MLE-ALL
>>     force user = mleall
>>     read only = No
>>
>> [NET-GMDB]
>>     comment = MLE-NET GoldMine DB
>>     path = /mnt/mle-net/MLE-NET/MLE-NET-GMDB
>>     write list = @MLE-ALL
>>     force user = mleall
>>     read only = No
>>     veto oplock files = /*.DBT/*.DBF/*.MDX/
>>     blocking locks = No
>>     level2 oplocks = No
>>     dos filemode = No
>>
>> [NET-Public]
>>     comment = MLE-NET Public Share
>>     path = /home/local/samba-public
>>     write list = @MLE-ALL
>>     force user = mleall
>>     read only = No
>>     copy = NET-Eng
>>
>>
> 




More information about the samba mailing list