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.