Bug 7943 - libsmbclient does not set errno of ECONNREFUSED
Summary: libsmbclient does not set errno of ECONNREFUSED
Status: NEW
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Derrell Lipman
QA Contact: Samba QA Contact
Depends on:
Reported: 2011-02-01 22:47 UTC by Tsukasa HAMANO
Modified: 2011-05-24 08:08 UTC (History)
1 user (show)

See Also:

patch for 3.2 (1007 bytes, patch)
2011-02-01 22:49 UTC, Tsukasa HAMANO
no flags Details
patch for 3.5 (1009 bytes, patch)
2011-02-01 22:50 UTC, Tsukasa HAMANO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tsukasa HAMANO 2011-02-01 22:47:04 UTC
smbc_open_fn and smbc_stat_fn, other function always set ETIMEDOUT when connect failure.
Therefore, we could not determine connection refused and actual connection timed.
I created patch that libsmbclient return ECONNREFUSED when connection refused.
Comment 1 Tsukasa HAMANO 2011-02-01 22:49:49 UTC
Created attachment 6241 [details]
patch for 3.2
Comment 2 Tsukasa HAMANO 2011-02-01 22:50:12 UTC
Created attachment 6242 [details]
patch for 3.5