[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
commitc33f3d5cba21c8cf267daab5450bc95ea7e68967
authorDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 22:02:46 +0000 (27 18:02 -0400)
committerDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 22:02:46 +0000 (27 18:02 -0400)
treef7e1ec8119dfa99e012aa587a1e68a5e2222298c
parent4b88f2c17e18f87d8ba0e35e057d7bb8a27614dd
[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
source3/libsmb/libsmb_dir.c
source3/libsmb/libsmb_file.c
source3/libsmb/libsmb_stat.c