mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
- Update to 15.7a
This commit is contained in:
parent
860ba2a1f2
commit
729df3ac44
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233090
@ -7,7 +7,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= cscope
|
||||
PORTVERSION= 15.7
|
||||
PORTVERSION= 15.7a
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user