From be3c40b627f1f39f9e60240c533cc9535a18f172 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 5 Sep 2002 18:52:18 +0000 Subject: 2002-09-04 Bruno Haible * elf/readlib.c (process_file): Conditionalize check for QMAGIC. * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask, sigset_get_old_mask): Turn into inline functions. * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask, sigset_get_old_mask): Likewise. * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask, sigset_get_old_mask): Likewise. * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove default definitions. (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist, _sys_nerr_internal instead of _sys_nerr. * nscd/connections.c (handle_request): Declare CALLER inside #if. --- nscd/connections.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nscd') diff --git a/nscd/connections.c b/nscd/connections.c index 7414ef60a3..58e05018d3 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -391,12 +391,12 @@ cannot handle old request version %d; current version is %d"), } else { - struct ucred caller; - socklen_t optlen = sizeof (caller); - /* Some systems have no SO_PEERCRED implementation. They don't care about security so we don't as well. */ #ifdef SO_PEERCRED + struct ucred caller; + socklen_t optlen = sizeof (caller); + if (getsockopt (fd, SOL_SOCKET, SO_PEERCRED, &caller, &optlen) < 0) { char buf[256]; -- cgit 1.4.1