Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Nov 2003 07:40:14 -0800 (PST)
From:      "Sergey A. Osokin" <osa@freebsd.org.ru>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/59510: security/libparanoia port kill() fix
Message-ID:  <200311201540.hAKFeEiS072705@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/59510; it has been noted by GNATS.

From: "Sergey A. Osokin" <osa@freebsd.org.ru>
To: Valentin Nechayev <netch@lucky.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org, snar@paranoia.ru
Subject: Re: ports/59510: security/libparanoia port kill() fix
Date: Thu, 20 Nov 2003 18:38:24 +0300

 On Thu, Nov 20, 2003 at 05:06:36PM +0200, Valentin Nechayev wrote:
 > 
 > --- stentry.c.orig	Thu Nov 20 16:59:32 2003
 > +++ stentry.c	Thu Nov 20 17:00:31 2003
 > @@ -20,7 +20,7 @@
 >  	openlog(__progname,LOG_NDELAY|LOG_PERROR|LOG_PID|LOG_CONS,LOG_USER);\
 >          syslog(LOG_ERR,"Stack violation - exiting");\
 >          closelog();\
 > -        kill(SIGSEGV,getpid());\
 > +        kill(getpid(),SIGSEGV);\
 >          exit(1) ;\
 >  
 >  #ifdef PARANOIDAL_ROOT
 
 Here is another and small version of patch (also my version save inode),
 please review and approve.
 Thanks.
 
 Index: ports/security/libparanoia/Makefile
 ===================================================================
 RCS file: /home/pcvs/ports/security/libparanoia/Makefile,v
 retrieving revision 1.12
 diff -u -u -r1.12 Makefile
 --- ports/security/libparanoia/Makefile	3 Nov 2003 19:32:09 -0000	1.12
 +++ ports/security/libparanoia/Makefile	20 Nov 2003 15:34:14 -0000
 @@ -6,7 +6,7 @@
  
  PORTNAME=	libparanoia
  PORTVERSION=	1.4
 -PORTREVISION=	2
 +PORTREVISION=	3
  CATEGORIES=	security
  MASTER_SITES=	ftp://ftp.lexa.ru/pub/domestic/snar/
  
 @@ -14,6 +14,7 @@
  COMMENT=	Safe (in the mean of stack smashing) reincarnation of strcpy et al
  
  ONLY_FOR_ARCHS=	i386
 +USE_REINPLACE=	yes
  
  INSTALLS_SHLIB=	yes
  
 @@ -26,6 +27,10 @@
  .endif
  
  .include <bsd.port.pre.mk>
 +
 +pre-patch:
 +	@${REINPLACE_CMD} -e 's|\(SIGSEGV\),\(getpid()\)|\2,\1|' \
 +		${WRKSRC}/stentry.c
  
  .if ${OSVERSION} >= 500039
  post-patch:
 -------------------------------------------
 
 -- 
 
 Rgdz,                        /"\  ASCII RIBBON CAMPAIGN
 Sergey Osokin aka oZZ,       \ /    AGAINST HTML MAIL
 http://ozz.pp.ru/             X          AND NEWS
                              / \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311201540.hAKFeEiS072705>