Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
mc
mc-startup-timeout.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mc-startup-timeout.patch of Package mc
diff -ru mc-4.8.10.orig/src/vfs/smbfs/helpers/lib/util.c mc-4.8.10/src/vfs/smbfs/helpers/lib/util.c --- mc-4.8.10.orig/src/vfs/smbfs/helpers/lib/util.c 2013-06-25 23:29:14.000000000 +0200 +++ mc-4.8.10/src/vfs/smbfs/helpers/lib/util.c 2013-09-27 12:04:27.306008996 +0200 @@ -1841,11 +1841,13 @@ /* Ensure null termination. */ hostname[sizeof (hostname) - 1] = '\0'; - /* get host info */ - if ((hp = Get_Hostbyname (hostname)) == 0) - { - DEBUG (0, ("Get_Hostbyname: Unknown host %s\n", hostname)); - return False; + if (ip) { /* query the ip only if it is requested */ + /* get host info */ + if ((hp = Get_Hostbyname (hostname)) == 0) + { + DEBUG (0, ("Get_Hostbyname: Unknown host %s\n", hostname)); + return False; + } } if (my_name) @@ -2474,6 +2476,9 @@ return (ret); } +#if 0 + /* IMHO this is useless and only increases the timeout */ + /* try with all lowercase */ strlower (name2); ret = sys_gethostbyname (name2); @@ -2491,6 +2496,7 @@ free (name2); return (ret); } +#endif /* nothing works :-( */ free (name2);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor