Error 0 from libsmbclient smbc_opendir("smb://:@@HOME/")
Christopher R. Hertel
crh at ubiqx.mn.org
Fri Aug 22 04:15:42 GMT 2003
On Thu, Aug 21, 2003 at 11:40:32PM -0400, Michael Spilo wrote:
> Hi All,
:
I can't comment on the rest, but regarding this bit...
:
> Anyway, the question is why do I get a -1 return with 0 errno on a
> smbc_opendir("smb://:@@HOME/") Could this be caused by some stupid setup
> mistake on my part?
>
> (The ":@" I've found is necessary if the workgroup name contains an @,
> since there doesn't seem to be a way to escape the @ out of the URI
> user:password@ sequence, which ends up a problem if you have @ in the
> user name, password or server/workgroup, but that's another topic.)
The '@' is a reserved character in that part of the URL. I wrote the I-D
on the SMB URL, and I have no idea how you would parse "smb://:@@HOME/".
It would vary from implementation to implementation. The correct way to
write it would be "smb://:@%40HOME/" or simply "smb://%40HOME/".
That would be the right syntax for the URL...
Chris -)-----
--
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/ -)----- crh at ubiqx.org
More information about the samba-technical
mailing list