Bug 7943 - libsmbclient does not set errno of ECONNREFUSED
libsmbclient does not set errno of ECONNREFUSED
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: libsmbclient
unspecified
Other Linux
: P3 normal
: ---
Assigned To: Derrell Lipman
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-01 22:47 UTC by Tsukasa HAMANO
Modified: 2011-05-24 08:08 UTC (History)
1 user (show)

See Also:


Attachments
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.
Thanks.
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