summaryrefslogtreecommitdiff
path: root/www/tidy
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-08-12 02:55:03 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-08-12 02:55:03 +0000
commit7fbf829f4e7a3ea76ea60c9a2642efd489849d94 (patch)
tree1fef60b3164a16c8696451fa9bc358886d5d5cff /www/tidy
parent- Update to 4.0.5. (diff)
Avoid dumping core when $HOME is not set.
Reference: <7mn0t271m8.wl@black.imgsrc.co.jp>
Notes
Notes: svn path=/head/; revision=64395
Diffstat (limited to 'www/tidy')
-rw-r--r--www/tidy/Makefile2
-rw-r--r--www/tidy/files/patch-ac18
2 files changed, 15 insertions, 5 deletions
diff --git a/www/tidy/Makefile b/www/tidy/Makefile
index ad1517c705d4..e9cb95213833 100644
--- a/www/tidy/Makefile
+++ b/www/tidy/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tidy
PORTVERSION= 20000804
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.w3.org/People/Raggett/
DISTNAME= tidy4aug00
diff --git a/www/tidy/files/patch-ac b/www/tidy/files/patch-ac
index 957ffed0d981..073e660a9fec 100644
--- a/www/tidy/files/patch-ac
+++ b/www/tidy/files/patch-ac
@@ -1,5 +1,5 @@
---- config.c.orig Fri Aug 4 19:21:05 2000
-+++ config.c Mon Nov 19 14:42:14 2001
+--- config.c.orig Sat Aug 5 01:21:05 2000
++++ config.c Mon Jul 8 23:07:17 2002
@@ -94,6 +94,7 @@
Bool TidyMark = yes; /* add meta element indicating tidied doc */
Bool Emacs = no; /* if true format error output for GNU Emacs */
@@ -16,7 +16,17 @@
/* this must be the final entry */
{0, 0, 0}
-@@ -423,7 +425,10 @@
+@@ -392,7 +394,8 @@
+ home_dir = passwd->pw_dir;
+ }
+
+- if (p = realloc(expanded_filename, strlen(filename)+strlen(home_dir)+1))
++ if (home_dir != NULL &&
++ (p = realloc(expanded_filename, strlen(filename)+strlen(home_dir)+1)))
+ {
+ strcat(strcpy(expanded_filename = p, home_dir), filename);
+ return(expanded_filename);
+@@ -423,7 +426,10 @@
/* open the file and parse its contents */
if ((fin = fopen(fname, "r")) == null)
@@ -28,7 +38,7 @@
else
{
config_text = null;
-@@ -533,6 +538,12 @@
+@@ -533,6 +539,12 @@
{
QuoteAmpersand = yes;
HideEndTags = no;