From 12d756396fb2fd7232b7650ebaa41de7da303546 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 8 Jul 2007 15:53:35 +0000 Subject: 2007-07-08 Marcus Brinkmann * assuan-defs.h (struct assuan_context_s): Have full peercred structure for HAVE_SO_PEERCRED. * assuan-connect.c (assuan_get_peercred) [!HAVE_SO_PEERCRED]: Do not try to set PID, UID and GID. --- src/assuan-defs.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/assuan-defs.h') diff --git a/src/assuan-defs.h b/src/assuan-defs.h index 9ee230d..b1d9f3e 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -5,7 +5,7 @@ * * Assuan is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 3 of + * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * Assuan is distributed in the hope that it will be useful, but @@ -14,7 +14,9 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, see . + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. */ #ifndef ASSUAN_DEFS_H @@ -140,11 +142,11 @@ struct assuan_context_s struct { int valid; /* Whether this structure has valid information. */ -#ifndef HAVE_W32_SYSTEM +#ifdef HAVE_SO_PEERCRED pid_t pid; /* The pid of the peer. */ uid_t uid; /* The uid of the peer. */ gid_t gid; /* The gid of the peer. */ -#endif /* HAVE_W32_SYSTEM */ +#endif /* HAVE_SO_PEERCRED */ } peercred; /* Used for Unix domain sockets. */ -- cgit v1.2.3