patch-src_assuan-socket-server_c 509 B

12345678910111213141516
  1. $OpenBSD: patch-src_assuan-socket-server_c,v 1.2 2013/03/23 13:44:44 ajacoutot Exp $
  2. --- src/assuan-socket-server.c.orig Mon Nov 26 14:35:34 2012
  3. +++ src/assuan-socket-server.c Sat Mar 23 14:40:40 2013
  4. @@ -61,7 +61,11 @@ accept_connection_bottom (assuan_context_t ctx)
  5. ctx->peercred_valid = 0;
  6. #ifdef HAVE_SO_PEERCRED
  7. {
  8. +#ifdef __OpenBSD__
  9. + struct sockpeercred cr;
  10. +#else
  11. struct ucred cr;
  12. +#endif
  13. socklen_t cl = sizeof cr;
  14. if ( !getsockopt (fd, SOL_SOCKET, SO_PEERCRED, &cr, &cl))