summaryrefslogtreecommitdiffstats
path: root/common/sysutils.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-10-27 09:13:36 +0200
committerWerner Koch <wk@gnupg.org>2016-10-27 09:27:37 +0200
commita9c8b5fbe7ae241bf45bdee15884abc7891aedf9 (patch)
tree0e91b2402c085bd56037c1b6908ace79092b0ce8 /common/sysutils.c
parentdirmngr: ADNS error handling fix. (diff)
downloadgnupg2-a9c8b5fbe7ae241bf45bdee15884abc7891aedf9.tar.xz
gnupg2-a9c8b5fbe7ae241bf45bdee15884abc7891aedf9.zip
common: Remove debug output from gnupg_get_socket_name.
* common/sysutils.c (gnupg_get_socket_name): Remove debug message and use my_error_from_syserror. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/sysutils.c')
-rw-r--r--common/sysutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index 0f87a422f..6eea90ed6 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -1105,7 +1105,7 @@ gnupg_get_socket_name (int fd)
if (getsockname (fd, (struct sockaddr*)&un, &len) != 0)
log_error ("could not getsockname(%d): %s\n", fd,
- gpg_strerror (gpg_error_from_syserror ()));
+ gpg_strerror (my_error_from_syserror ()));
else if (un.sun_family != AF_UNIX)
log_error ("file descriptor %d is not a unix-domain socket\n", fd);
else if (len <= offsetof (struct sockaddr_un, sun_path))
@@ -1117,12 +1117,12 @@ gnupg_get_socket_name (int fd)
{
size_t namelen = len - offsetof (struct sockaddr_un, sun_path);
- log_debug ("file descriptor %d has path %s (%zu octets)\n", fd,
- un.sun_path, namelen);
+ /* log_debug ("file descriptor %d has path %s (%zu octets)\n", fd, */
+ /* un.sun_path, namelen); */
name = xtrymalloc (namelen + 1);
if (!name)
log_error ("failed to allocate memory for name of fd %d: %s\n",
- fd, gpg_strerror (gpg_error_from_syserror ()));
+ fd, gpg_strerror (my_error_from_syserror ()));
else
{
memcpy (name, un.sun_path, namelen);