[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
commitbc6a6816ea5332d98b6c49bb8080b9c3524d41a1
authorDerrell Lipman <derrell@dworkin.(none)>
Fri, 27 Mar 2009 21:10:04 +0000 (27 17:10 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 30 Mar 2009 10:02:45 +0000 (30 12:02 +0200)
tree477e4bba96334d07c2f71693516e430fb48e43f9
parent8a5d0e0989ea0ba40b0d08752248c3d2e4fb061b
[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 f4e68b09a6ba30d968bccfad8bf6b67b4456b111)
source/libsmb/libsmb_dir.c
source/libsmb/libsmb_file.c
source/libsmb/libsmb_stat.c