The Samba-Bugzilla – Bug 6228
SMBC_open_ctx failure due to path resolve failure doesn't set errno
Last modified: 2009-03-27 17:08:37 UTC
if cli_resolve_path fails we return NULL but don't set errno from SMBC_errno().
Thanks. It's been fixed in all branches.
It turns out there were a number of places where cli_resolve_path() was called
and the error path upon that function failing did not set errno. There were a
couple of places the failure handling code did set errno to ENOENT, so I made
them all consistent, although I think better errno choices for this condition
exist, e.g. EHOSTUNREACH.