From d32a9420dad4374eb1738e3d985eb12cfaf674bb Mon Sep 17 00:00:00 2001 From: Ilia Sotnikov Date: Thu, 12 Mar 2009 12:41:46 +0000 Subject: [PATCH] * Use hstrerror (h_errno) instead of strerror(errno) on gethostbyname() errors --- frontend/saned.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/saned.c b/frontend/saned.c index ae9302960..71f46cc6b 100644 --- a/frontend/saned.c +++ b/frontend/saned.c @@ -1169,7 +1169,7 @@ check_host (int fd) if (!he) { DBG (DBG_ERR, "check_host: gethostbyname failed: %s\n", - strerror (errno)); + hstrerror (h_errno)); return SANE_STATUS_INVAL; } DBG (DBG_DBG, "check_host: local hostname (from DNS): %s\n", @@ -1275,7 +1275,7 @@ check_host (int fd) { DBG (DBG_DBG, "check_host: gethostbyname for `%s' failed: %s\n", - config_line, strerror (errno)); + config_line, hstrerror (h_errno)); DBG (DBG_MSG, "check_host: entry isn't an IP address " "and can't be found in DNS\n"); continue;