id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking,branch_state,votes 1,savannah: mc's built-in samba library is out of date,spock,andrew_b,"Original: http://savannah.gnu.org/bugs/?5142 ||Submitted by:||Michał Januszewski ||Submitted on:||08 Sep 2003 14:20:05|| ||Category:||VFS||Severity:||3 - Normal|| ||Status:||None||Privacy:||Public|| ||Assigned to:||None||Open/Closed:||Open|| ||Release:||4.6.0||Operating System:||All|| Original submission: {{{ The mc's built-in samba library which is used to access data across smb links is taken from an old samba version. This can cause problems since things change as time goes on. For example - current samba version supports something like: ""interface = eth1"" in smb.conf, the version included in mc does not. This leads to calling gethostname(""eth1"") 3 times at startup (on my box). Recently I have had some problems with the DNS servers I use. I had to wait 3 minutes (!) before mc started because it tried to resolve ""eth1"" (2 times ) and ""ETH1"" (which of course wasn't possible because of the DNS server failure). I have created this patch for mc: http://www.spock.mga.com.pl/public/gentoo/mc-4.6.0-samba.patch.bz2 (sorry to put it on an external site but since it's almost 600kb, I didn't want to upload it here). It updates mc's samba libraries to 2.2.8a. By doing so it automatically fixes another problem - namely, with current vesions of libcap an error (redefinition of struct statfs) occurs while building mc. }}} Comment 1 by Pavel Roskin at Mon 05 Dec 2005 02:06:15 AM UTC: {{{ We'll have this problem as long as mc uses Samba configuration files. Every time Samba changes the format of its configuration files, mc will have to be upgraded (not just recompiled). I see two solutions: 1) Use libsmbclient. This way, upgrading Samba will upgrade the client library, and mc will recognize new configuration. 2) Don't use Samba configuration files in mc. Use a separate configuration file or store all configuration in ~/.mc/ini I would prefer that we at least try to use libsmbclient, and if it doesn't work, let's report it to Samba maintainers. This way, libsmbclient will be ready for mc some day. }}} Comment 2 by Sorin Sbarnea at Wed 30 Jul 2008 05:56:11 PM UTC: {{{ I wonder why this wasn't solved in 5 years. It's quite common and makes mc unusable. The average timeout is ~1 minute. }}} ",enhancement,closed,major,4.8.28,mc-vfs,4.6.1,fixed,samba,info@…,,"40, 42, 2281, 3938",merged,committed-master