aboutsummaryrefslogtreecommitdiff
path: root/devel/cscope
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2009-05-01 18:43:29 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2009-05-01 18:43:29 +0000
commit729df3ac44c6abe6b96b7a952877cd8493cd7270 (patch)
treeda87b0922732edf8e37a5cb4232be4e06d6bbd4f /devel/cscope
parent860ba2a1f2e18ff2ebfb56d8499f6259a5f002b9 (diff)
downloadports-729df3ac44c6abe6b96b7a952877cd8493cd7270.tar.gz
ports-729df3ac44c6abe6b96b7a952877cd8493cd7270.zip
Notes
Diffstat (limited to 'devel/cscope')
-rw-r--r--devel/cscope/Makefile2
-rw-r--r--devel/cscope/distinfo6
-rw-r--r--devel/cscope/files/patch-main.c25
3 files changed, 4 insertions, 29 deletions
diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile
index 46862c2a8b5f..850d6afb7164 100644
--- a/devel/cscope/Makefile
+++ b/devel/cscope/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= cscope
-PORTVERSION= 15.7
+PORTVERSION= 15.7a
CATEGORIES= devel
MASTER_SITES= SF
diff --git a/devel/cscope/distinfo b/devel/cscope/distinfo
index 07d615a01c40..6bce0f6c3bf3 100644
--- a/devel/cscope/distinfo
+++ b/devel/cscope/distinfo
@@ -1,3 +1,3 @@
-MD5 (cscope-15.7.tar.bz2) = 08e1134914907031d916b1c9b428cbf7
-SHA256 (cscope-15.7.tar.bz2) = 6a657a320f6601c28875aed2a487d55fe14b467b18f4631546016bb60e08cf33
-SIZE (cscope-15.7.tar.bz2) = 243576
+MD5 (cscope-15.7a.tar.bz2) = da43987622ace8c36bbf14c15a350ec1
+SHA256 (cscope-15.7a.tar.bz2) = 02638bcba790bc8b0562f28dbe789e61794415079d94a676efc287d18dc96037
+SIZE (cscope-15.7a.tar.bz2) = 361214
diff --git a/devel/cscope/files/patch-main.c b/devel/cscope/files/patch-main.c
index eecf7051be68..747ff952a6a2 100644
--- a/devel/cscope/files/patch-main.c
+++ b/devel/cscope/files/patch-main.c
@@ -1,30 +1,5 @@
--- 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 @@
- }
- 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 */