summaryrefslogtreecommitdiff
path: root/www/p5-CGI-SpeedyCGI
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2003-05-21 10:43:18 +0000
committerAnton Berezin <tobez@FreeBSD.org>2003-05-21 10:43:18 +0000
commit0d8cea2456b89d0b700c577c246497d5a6d52b10 (patch)
treeff4b2b8bc6794d81249af6c812b462e4c4da160a /www/p5-CGI-SpeedyCGI
parentFix on sparc64 by using a time_t instead of a long, and bump PORTREVISION. (diff)
Fix coredumps.
PR: 52522 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=81587
Diffstat (limited to 'www/p5-CGI-SpeedyCGI')
-rw-r--r--www/p5-CGI-SpeedyCGI/Makefile2
-rw-r--r--www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/www/p5-CGI-SpeedyCGI/Makefile b/www/p5-CGI-SpeedyCGI/Makefile
index f2546fa25cac..421d1208a053 100644
--- a/www/p5-CGI-SpeedyCGI/Makefile
+++ b/www/p5-CGI-SpeedyCGI/Makefile
@@ -7,7 +7,7 @@
PORTNAME= CGI-SpeedyCGI
PORTVERSION= 2.21
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
diff --git a/www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c b/www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c
new file mode 100644
index 000000000000..e83793b7d986
--- /dev/null
+++ b/www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c
@@ -0,0 +1,20 @@
+--- src/speedy_opt.c Mon Sep 30 07:19:54 2002
++++ /tmp/speedy_opt.c Tue May 20 11:11:28 2003
+@@ -165,6 +165,8 @@ static void cmdline_split(
+ ++p;
+ if (*p)
+ strlist_append(doing_speedy_opts ? speedy_opts : perl_args, *p);
++ else
++ break;
+ }
+
+ if (*p) {
+@@ -422,7 +424,7 @@ const char * const *speedy_opt_script_ar
+ }
+
+ SPEEDY_INLINE const char *speedy_opt_script_fname(void) {
+- return exec_argv.ptrs[script_argv_loc];
++ return exec_argv.len > script_argv_loc ? exec_argv.ptrs[script_argv_loc] : NULL;
+ }
+
+ #ifdef SPEEDY_BACKEND