[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
authorDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 20:56:33 +0000 (16:56 -0400)
committerDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 20:56:33 +0000 (16:56 -0400)
commitd72271908e0d67eb31fbc1d818d6f2c720bd7fbb
treeb213cc90d199ca55d3e660e5fdec4317c4afd858
parent81d7d62c339c836ddd7053b5b3624ba36a2c0174
[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno

Fixed.

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.

Derrell
source/libsmb/libsmb_dir.c
source/libsmb/libsmb_file.c
source/libsmb/libsmb_stat.c