Henrik Zagerholm
2006-May-16 08:19 UTC
[Samba] How to handle special characters in filenames
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. Any help would be greatly appreciated. Regards, Henrik
Michael B Allen
2006-May-16 21:57 UTC
[Samba] Re: How to handle special characters in filenames
On Tue, 16 May 2006 10:19:01 +0200 Henrik Zagerholm <henke@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