[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
commitd5ef2e4cbfac6962b647a220047eb27f1786a1b4
authorDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 20:56:33 +0000 (27 16:56 -0400)
committerKarolin Seeger <kseeger@samba.org>
Tue, 31 Mar 2009 14:17:06 +0000 (31 16:17 +0200)
tree060580b55c781a12c50eea45f7ad4eb633b118ff
parent595e8876aecfab12b40fec5c9d8737af1b8a1bab
[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
(cherry picked from commit d72271908e0d67eb31fbc1d818d6f2c720bd7fbb)
source/libsmb/libsmb_dir.c
source/libsmb/libsmb_file.c
source/libsmb/libsmb_stat.c