Index: head/devel/cscope/pkg-plist =================================================================== --- head/devel/cscope/pkg-plist (revision 208921) +++ head/devel/cscope/pkg-plist (nonexistent) @@ -1,2 +0,0 @@ -bin/cscope -bin/ocs Property changes on: head/devel/cscope/pkg-plist ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.4 \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Index: head/devel/cscope/Makefile =================================================================== --- head/devel/cscope/Makefile (revision 208921) +++ head/devel/cscope/Makefile (revision 208922) @@ -1,24 +1,26 @@ # ex:ts=8 # ports collection makefile for: cscope # Date created: 1998-11-21 # Whom: Castor Fu # # $FreeBSD$ # PORTNAME= cscope PORTVERSION= 15.6 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= conrads@cox.net COMMENT= An interactive C program browser GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-yacc +PLIST_FILES= bin/cscope \ + bin/ocs MAN1= cscope.1 .include Property changes on: head/devel/cscope/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.27 \ No newline at end of property +1.28 \ No newline at end of property Index: head/devel/cscope/files/patch-main.c =================================================================== --- head/devel/cscope/files/patch-main.c (revision 208921) +++ head/devel/cscope/files/patch-main.c (revision 208922) @@ -1,27 +1,35 @@ ---- src/main.c.orig Sat Sep 30 01:13:00 2006 -+++ src/main.c Thu Oct 5 15:21:30 2006 -@@ -359,7 +359,7 @@ cscope: TMPDIR to a valid directory\n"); +--- src/main.c.orig 2006-09-30 03:13:00.000000000 -0500 ++++ src/main.c 2008-01-18 15:01:59.000000000 -0600 +@@ -359,7 +359,7 @@ /* create the temporary file names */ orig_umask = umask(S_IRWXG|S_IRWXO); pid = getpid(); - sprintf(tempdirpv, "%s/cscope.%d", tmpdir, pid); + snprintf(tempdirpv, sizeof(tempdirpv), "%s/cscope.%d", tmpdir, pid); if(mkdir(tempdirpv,S_IRWXU)) { fprintf(stderr, "\ cscope: Could not create private temp dir %s\n", -@@ -368,8 +368,13 @@ cscope: Could not create private temp di +@@ -368,8 +368,13 @@ } umask(orig_umask); - sprintf(temp1, "%s/cscope.1", tempdirpv); - sprintf(temp2, "%s/cscope.2", tempdirpv); + if ((strlen(tempdirpv) + strlen("/cscope.X")) > PATHLEN) { + fprintf(stderr, "cscope: Could not create private temp files\n"); + myexit(1); + } + + snprintf(temp1, sizeof(temp1), "%s/cscope.1", tempdirpv); + snprintf(temp2, sizeof(temp2), "%s/cscope.2", tempdirpv); /* if running in the foreground */ if (signal(SIGINT, SIG_IGN) != SIG_IGN) { +@@ -379,6 +384,7 @@ + } + /* cleanup on the hangup signal */ + signal(SIGHUP, myexit); ++ signal(SIGTERM, myexit); + + /* if the database path is relative and it can't be created */ + if (reffile[0] != '/' && access(".", WRITE) != 0) { Property changes on: head/devel/cscope/files/patch-main.c ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property