[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
commitf4e68b09a6ba30d968bccfad8bf6b67b4456b111
authorDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 21:10:04 +0000 (27 17:10 -0400)
committerDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 21:10:04 +0000 (27 17:10 -0400)
tree081fa80633ef52674312ea1fbc574989617496de
parent52fe104996439db24a7e6b17baa7fec47ba230bb
[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