[Samba] Re: How to handle special characters in filenames

Henrik Zagerholm henke at mac.se
Wed May 17 10:35:09 GMT 2006


Tried it and it worked!

Thanks a bunch Mike!

Cheers,
Henrik
16 maj 2006 kl. 17:29 skrev Michael B Allen:

> On Tue, 16 May 2006 10:19:01 +0200
> Henrik Zagerholm <henke at mac.se> wrote:
>
>> Hi,
>>
>> I'm using samba 3.0.21 on a FC 4 box.
>> I'm connecting to Win XP pro clients.
>>
>> Using smbclient I can get and put files which contain '%' in file  
>> names.
>>
>> Using libsmbclient smbc_open this is not possible. I get 'No such
>> file or directory Errno::ENOENT' error.
>>
>> Any ideas how to solve this.
>> I guess it has to do with escaping special characters in smb urls but
>> I haven't found the correct way of doing this.
>
> Try standard url escapes %<hexcode>. For example if you have '%' in  
> your
> path like "p%th" then 0x25 the hexcode so you need "p%25th".
>
> Mike



More information about the samba mailing list