Bugzilla – Attachment 1413 Details for
Bug 1417
Better error message when hostname resolution fails.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Better name resolution error.
DVG-4907495_name_resolution_error_message.patch (text/plain), 759 bytes, created by
Disco Vince Giffin
on 2007-12-21 15:40:34 AEDT
(
hide
)
Description:
Better name resolution error.
Filename:
MIME Type:
Creator:
Disco Vince Giffin
Created:
2007-12-21 15:40:34 AEDT
Size:
759 bytes
patch
obsolete
>diff -uNr ../openssh-4.5p1.orig/sshconnect.c ./sshconnect.c >--- ../openssh-4.5p1.orig/sshconnect.c 2006-10-23 10:02:24.000000000 -0700 >+++ ./sshconnect.c 2007-01-10 16:23:25.000000000 -0800 >@@ -319,9 +319,9 @@ > hints.ai_family = family; > hints.ai_socktype = SOCK_STREAM; > snprintf(strport, sizeof strport, "%u", port); >- if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) >- fatal("%s: %.100s: %s", __progname, host, >- gai_strerror(gaierr)); >+ if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) { >+ fatal("%s: Error resolving hostname %.100s: %s", __progname, host, (EAI_SYSTEM == gaierr) ? strerror(errno) : gai_strerror(gaierr)); >+ } > > for (attempt = 0; attempt < connection_attempts; attempt++) { > if (attempt > 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1417
: 1413 |
1423