head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.6 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.4 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.2 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.3.0.22 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.20 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.18 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.16 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.14 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.12 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.10 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.8 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.6 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.4 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.2 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.2.0.36 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.34 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.32 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.30 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.28 pkgsrc-2008Q1:1.2.0.26 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.24 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.22 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.20 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.18 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.16 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.14 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.12 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.10 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.8 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.6 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.4 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.2 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.1.0.18 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.4 date 2011.10.21.19.37.29; author ryoon; state dead; branches; next 1.3; 1.3 date 2009.02.13.18.53.28; author abs; state Exp; branches; next 1.2; 1.2 date 2005.03.17.12.24.13; author salo; state Exp; branches; next 1.1; 1.1 date 2002.01.25.18.58.02; author kleink; state Exp; branches; next ; desc @@ 1.4 log @Update to 1.6.5.2 * Set LICENSE. * Make pkglint happy Changelog: Summary of changes in enscript version 1.6.5.2: * Fix CFG_FATAL macro in util.c; this prevents a segmentation fault when the configuration file contains unknown parameters. (Savannah bug #28769) * Fix segmentation fault with line lengths over 90 characters. (Savannah bug #29198) Summary of changes in enscript version 1.6.5.1: * Typo corrections in the manual pages. * Reorganise source tree to use a single ChangeLog file. * Actually ship f90.st in the tarball. * Reorganise INSTALL and README. Noteworthy changes in enscript version 1.6.5: * New maintainer. * Licensing change: GNU Enscript is now distributed under version 3 or later of the GNU GPL. * Build system fixes - distcheck now passes. * At least four security bug fixes: - CAN-2004-1184 - CAN-2004-1185 - CAN-2004-1186 - CVE-2008-3863, CVE-2008-4306 * Syntax highlighting fixes. - shell escaping rules from Shawn McMahon. - JavaScript regexps now recognised. - New highlighting rules for Fortran 90 from David Bowler. See changelogs for more detailed notes. @ text @$NetBSD: patch-aa,v 1.3 2009/02/13 18:53:28 abs Exp $ --- src/main.c.orig 2003-03-05 07:36:32.000000000 +0000 +++ src/main.c @@@@ -1546,9 +1546,13 @@@@ name width\theight\tllx\tlly buffer_append (&cmd, intbuf); buffer_append (&cmd, " "); - buffer_append (&cmd, "-Ddocument_title=\""); - buffer_append (&cmd, title); - buffer_append (&cmd, "\" "); + buffer_append (&cmd, "-Ddocument_title=\'"); + if ((cp = shell_escape (title)) != NULL) + { + buffer_append (&cmd, cp); + free (cp); + } + buffer_append (&cmd, "\' "); buffer_append (&cmd, "-Dtoc="); buffer_append (&cmd, toc ? "1" : "0"); @@@@ -1565,8 +1569,14 @@@@ name width\theight\tllx\tlly /* Append input files. */ for (i = optind; i < argc; i++) { - buffer_append (&cmd, " "); - buffer_append (&cmd, argv[i]); + char *cp; + if ((cp = shell_escape (argv[i])) != NULL) + { + buffer_append (&cmd, " \'"); + buffer_append (&cmd, cp); + buffer_append (&cmd, "\'"); + free (cp); + } } /* And do the job. */ @@@@ -1627,7 +1637,7 @@@@ name width\theight\tllx\tlly buffer_ptr (opts), buffer_len (opts)); } - buffer_append (&buffer, " \"%s\""); + buffer_append (&buffer, " \'%s\'"); input_filter = buffer_copy (&buffer); input_filter_stdin = "-"; @ 1.3 log @Updated print/enscript to 1.6.4 pkgsrc changes: Add PKG_DESTDIR_SUPPORT, Set PAPERSIZE in BUILD_DEFS, pkglint Changes since 1.6.3: 2003-02-28 gettextize * Makefile.am (SUBDIRS): Add intl. * configure.in (AC_OUTPUT): Add intl/Makefile, 2003-02-28 gettextize * Makefile.am (SUBDIRS): Add m4. (ACLOCAL_AMFLAGS): New variable. (EXTRA_DIST): Add config.rpath. * configure.in (AC_OUTPUT): Add po/Makefile.in, (AM_GNU_GETTEXT_VERSION): Bump to 0.11.5. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2005/03/17 12:24:13 salo Exp $ @ 1.2 log @Update to version 1.6.3nb1 nb1: ==== - security fixes for CAN-2004-1184, CAN-2004-1185, CAN-2004-1186 - patches from Debian/Gentoo - addresses PR pkg/29721 1.6.3: ====== - Changes in the highlighting / pretty printing - Support for state inheritance. - new highlighting rules - new output language `ansi' to print color outputs - new encodings - new options @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- src/main.c.orig 2002-01-24 08:35:45.000000000 +0100 +++ src/main.c 2005-03-17 11:52:58.000000000 +0100 @@@@ -1546,9 +1546,13 @@@@ d22 1 a22 1 @@@@ -1565,8 +1569,14 @@@@ d39 1 a39 1 @@@@ -1627,7 +1637,7 @@@@ @ 1.1 log @Update to 1.6.1nb1: fix temporary file creation vulnerability; from Tim Waugh via Debian. @ text @d3 5 a7 9 --- src/main.c.orig Thu Jun 25 10:26:00 1998 +++ src/main.c Fri Jan 25 19:35:40 2002 @@@@ -642,7 +642,6 @@@@ * Print Table of Contents page. */ int toc = 0; -char toc_fname[512]; FILE *toc_fp; char *toc_fmt_string; d9 16 a24 3 @@@@ -1429,19 +1428,10 @@@@ /* Table of Contents. */ if (toc) d26 10 a35 15 - cp = tmpnam (toc_fname); - if (cp == NULL) + toc_fp = tmpfile (); + if (toc_fp == NULL) FATAL ((stderr, _("couldn't create toc file name: %s"), strerror (errno))); - - toc_fp = fopen (toc_fname, "w+b"); - if (toc_fp == NULL) - FATAL ((stderr, _("couldn't create toc file \"%s\": %s"), - toc_fname, strerror (errno))); - - if (remove (toc_fname) == 0) - /* Remove successfull, no need to remove file at exit. */ - toc_fname[0] = '\0'; d38 4 d43 2 a44 9 @@@@ -1519,10 +1509,6 @@@@ /* Clean up toc file. */ fclose (toc_fp); - - /* Do we have to remove the toc file? */ - if (toc_fname[0]) - (void) remove (toc_fname); } d46 2 a47 1 /* Give trailer a chance to dump itself. */ @