From af9257573f505a563f0fc5d6af373f5293a1dc30 Mon Sep 17 00:00:00 2001 From: hubertf Date: Fri, 27 Jun 2003 12:18:11 +0000 Subject: Update hylafax to 4.1.5. Fixes a security hole! Other changes: Changelog for HylaFAX 4.1.5 - Oct 21, 2002 * fix lockfile polling race condition (21 Oct 2002) Changelog for HylaFAX 4.1.4 - Oct 20, 2002 * fix broken polling in Class 1 (08 Oct 2002) * change pollrcvd to behave similarly to faxrcvd (06 Oct 2002) * fix faxqclean to not miss certain orphaned files (01 Oct 2002) * change faxrcvd to only require 4 parameters (01 Oct 2002) * fix recvstats to handle new Super G3 faxing speeds (01 Oct 2002) * cause faxgetty to poll for lockfiles while RUNNING (01 Oct 2002) * cause faxq to explicitly trigger LOCKWAIT for faxgetty (01 Oct 2002) * replace the select bug workaround with a better fix (01 Oct 2002) * allow sendfax -z option to accept whitespace in file (22 Sep 2002) * add -f and -c options to probemodem (20 Sep 2002) * improve sendfax parsing of '-z' destination file (22 Sept 2002) * disabled Solaris DSO support due to problems (13 Sep 2002) * add Class1ResponseWaitCmd to help USR send errors (13 Sep 2002) * add recognition of most of Japan NSF codes (13 Sep 2002) * fix notify manpage to not include commid (13 Sep 2002) * fix +XMonth capability of "at" syntax to use 12 month year (13 Sep 2002) * fix killtime to allow >= 24 day settings (13 Sep 2002) * add RingExtended config option (29 Aug 2002) * pass CID information to faxrcvd when using faxanswer (27 Aug 2002) * increase the RING timeout setting to six seconds (27 Aug 2002) * break lucent-isa prototype from lucent (27 Aug 2002) * add Class1MsgRecvHackCmd otpion (21 Aug 2002) * add faxqclean -A (force archiving) option (20, 29 Aug 2002) * fix pdf2fax to be installed properly for custom packaging (19 Aug 2002) * add Digi AccelePort prototype support (15 Aug 2002) * number DSOs according to the HylaFAX version (15 Aug 2002) * make faxalter accept more than one option at a time (14 Aug 2002) * add recognition of all US and UK NSF codes (14 Aug 2002) * change ModemBaudRateDelay default to help USRs reset (13 Aug 2002) * fix xferfaxstats to handle new Super G3 faxing speeds (08 Aug 2002) * support page counting for PDFs (02 Aug 2002) * change sendfax to warn users about bad placement of "-d" options (02 Aug 2002) * fixed faxaddmodem and probemodem for portability (02, 07 Aug 2002) * corrected some comments in prototype config files (01 Aug 2002) * added support for new USR Courier modem (01 Aug 2002) Changelog for HylaFAX 4.1.3 - Jul 27, 2002 * change some comments in the usr-xon and usr-rts (27 Jul 2002) * synchronize faxd/tif_fax3.h with libtiff's (23 Jul 2002) * remove the SGI logo from the default coverpage (23 Jul 2002) * documentation clarification for NoCarrierRetries (22 Jul 2002) * fix notify.awk to handle jobtag values with colons (19 Jul 2002) * remove admin-only restriction to the tagline (16 Jul 2002) * adds prototype support for MultiTech ISI5634PCI (09 Jul 2002) * caused the wedged script to give exit status (06 Jul 2002) * allowed faxgetty to identify extended RING data as a RING (06 Jul 2002) * fixed a buffer overflow when receiving long scan lines (06 Jul 2002) * enhanced Class1Modem::parseQuery() to parse correctly +FTM responses which contain item ranges (dashes) (27 Jun 2002) * made fixes to enable gcc v3.0 compatibility (15 Jun 2002) * made minor changes for Sun Forte compiler compatibility (14 Jun 2002) * fixed hostname format string vulnerabilities in faxrm, faxalter, faxstat, sendfax, sendpage, and faxwatch (14 Jun 2002) * added TagLineFormat option for receiver's name (14 Jun 2002) * added MultiTech RTFCC support via Class2RTFCC option (11, 28 Jun 2002) * workaround a Lucent V92 firmware bug in HDLC frame tracing (08 Jun 2002) * added Class2PTSQueryCmd for broken Class 2.0 firmwares (08 Jun 2002) * fixed a TSI format string vulnerability in faxgetty (08 Jun 2002) * fixed faxrcvd creation of PDFs other than letter size (08 Jun 2002) * added sendfax -z option to read destinations from a file (08 Jun 2002) * updated 'make clobberconfig' (27 May 2002) * added support for Solaris DSOs (24 May 2002) * fixed Class 1 sending CRP handling (24 May 2002) * changed Class 1 reception protocol to tolerate long syslog delays which could be encountered in extremely heavy loads (24 May 2002) * added prototype support for Sedlbauer Speedfax ISDN (24 May 2002) * added Class1TCFRecvHack config option (24 May 2002) * changed Class1SwitchingDelay to Class1SwitchingCmd (24 May 2002) * more 64-bit system compatibility enhancement (24 May 2002) * large update added initial Class 2.1 and V.34-fax support in particular for the MultiTech MT5634ZBA-V92 and MT5634ZPX-PCI-V92 (23 May, 14 Jun 2002) * have faxsetup check the fax user home directory (23 May 2002) * allow server-side usage of DisplayNumber in dialrules (23 May 2002) * changed various scripts for POSIX compliance (23 May 2002) * fixed a logging error in faxqclean (23 May 2002) * added prototype support for RocketModem PCI (10 May 2002) * changed the options proccessing order to fix Desired* options (03 May 2002) * added prototype support for Eicon Diva modems (03 May 2002) * enhanced configure for OSF-5.1A utmp support (03 May 2002) * fixed a five-second delay when receiving DID (03 May 2002, 27 May 2002) * added prototype for Davicom modems (03 May 2002) * fixed faxqclean to keep referenced docs in the doneq (03 May 2002) * Japanization and 64-bit system enhancement (03 May 2002) * fixed a configure problem with sed-3.02.80 (03 May 2002, 23 May 2002) * fixed a copy quality logic error with Class 2 reception (03 May 2002) * documented the use of "-1" values in sendfax for MaxDials (03 May 2002) * correct JobReqOther from interfering with other requeing (03 May 2002) * add preliminary job archiving support (03 May 2002) * make stripping of binaries in html conditional on HTML=yes (13 Apr 2002) Changelog for HylaFAX 4.1.2 - Apr 11, 2002 * T.4 incompatability error message more descriptive (11 Apr 2002) * fix faxcron to prevent it from deleting seqf files (11 Apr 2002) * alter faxaddmodem to perform regex on the ATI0 result (7 Apr 2002) * enhance defaults to recognize and configure Mac OS X (7 Apr 2002) * change PWD usage in configure to PWDCMD (7 Apr 2002) * add notification message to timedout jobs (7 Apr 2002) * cleanup previous Topic modem enhancement (7 Apr 2002) * cleanup previous Digital Unix enhancement (7 Apr 2002) * cleanup previous "F" status enhancement (7 Apr 2002) * changed many prototype configs to use 19200 baud instead of 38400 and to not use the "@" dial-command option (7 Apr 2002) * fix segfault in faxqclean (28 Feb 2002) Changelog for HylaFAX 4.1.1 - Feb 24, 2002 * resolve faxsetup and textfmt problems with Ghostscript 6.5 where Fontmap.GS could not be found (14 Feb 2002) * fix blocked jobs from getting requeued at the end (14 Feb 2002) * caused faxgetty to pass CIDName to faxrcvd and enhance documentation to include DNIS details (14 Feb 2002) * gave failed jobs status "F" instead of "D" (14 Feb 2002) * add Topic modem prototype config support (14 Feb 2002) * replace Class1Send[EOP|PPM|TCF]Delay with Class1[EOP|PPM|TCF]WaitCmd, using +FTS for these pauses, resolving some timing issues (14 Feb 2002) * fix PriorityScheduling and update html for SCO (13 Feb 2002) * added OpenUNIX support (13 Feb 2002) * updated config.guess (13 Feb 2002) * correct ECM detection in Class 2 (2 Feb 2002) * added ModemSoftResetCmdDelay default and option (2 Feb 2002) * enhanced Class 1 parseQuery to allow for the use of parenthesis (2 Feb 2002) * added NSF entries for various machine types (2 Feb 2002) * fixed hfaxd from always exiting nonzero with inetd (2 Feb 2002) * altered logging to prevent double-double quoting (2 Feb 2002) * fixed pageSendApp.c++ logging pointer (2 Feb 2002) * changed the faxaddmodem default to select Class 1 (2 Feb 2002) * adjusted Class1SwitchingDelay default to fix ISDNs (2 Feb 2002) * added prototype config support for some Boca, USR, and Practical Peripherals modems (2 Feb 2002) * corrected problems building on Digital UNIX Alphas (2 Feb 2002) * improved faxgetty glare handling (2 Feb 2002) * improved some logging verbosity (2 Feb 2002) * fixed an RTNHandlingMethod typo (16 Dec 2001) * fixed RTNHandlingMethod brokenness (15 Oct 2001) * corrected DestControls ability to use numeric arguments and other similar DestControls fixes (12 Aug 2001) * more Lucent and K56 modem prototype config support (12 Aug 2001) * workaround: stopped trying to utilize NDIS frames (12 Aug 2001) * added Class1SendMsgDelay (12 Aug 2001) * enhanced the logging of garbage frames (12 Aug 2001) * added prototype config support for Hayes Optima (12 Aug 2001) * fixed faxgetty's parsing of Class 1.0 in +FCLASS=? (12 Aug 2001) * finally added faxcover "from" options and corrected it to function as documented for comments (12 Aug 2001) * corrected and enhanced earlier QualifyTSI fix (12 Aug 2001) * updated config.guess, config.sub from gcc-3.0 (18 Jul 2001) * cause the sequence files to begin at 1 rather than 2 (15 Jul 2001) * include external MultiTech into lucent-mt-2 (15 Jul 2001) * apply use of "none" to rc32acl prototype config (15 Jul 2001) * corrected documentation regarding some defaults (15 Jul 2001) * fixed stripQuotes for unexpected TSI quoting (15 Jul 2001) * integrate Linux DSO support (15 Jul 2001) * fixed bash v2 verbosity in probemodem (15 Jul 2001) * note to run hfaxd as root if run from inetd (4 Jul 2001) * remove setuid from hfaxd in pkg (4 Jul 2001) * add INSTALL to distrules (4 Jul 2001) * add prototype config for Prometheus (3 Jul 2001) * correct timing of DCN after failed QualifyTSI check (2 Jul 2001) * fix Class 1 EOM handling (2 Jul 2001) * add Class1SendEOPDelay config option and increase the default from 95ms to 200ms to prevent modem timeouts (2 Jul 2001) * enhance faxrcvd to utilize CID, use FILETYPE (for FaxDispatch), and other minor faxrcvd enhancments (2 Jul 2001) * pass CID data through successive rings and to faxrcvd (2 Jul 2001) * caused bulk faxes to drop in requeue priority (2 Jul 2001) * fix faxaddmodem from mis-parsing a modem's phone number (2 Jul 2001) * added 7-bit text support to typerules (2 Jul 2001) * stop faxqclean from deleting docq files that are in-use (2 Jul 2001) * fixed a bash barf when VERSION changed (2 Jul 2001) * caused configure to check zlib before libtiff (2 Jul 2001) * added prototype config support for AT&T Lucent modem (2 Jul 2001) * applied the use of "none" in rc288dpi config (2 Jul 2001) Patch contributed by Andreas Hallmann - } - -+#ifndef TRUE -+#define TRUE 1 -+#endif -+ -+#ifndef FALSE -+#define FALSE 0 -+#endif -+ - TypeRule::TypeRule() {} - TypeRule::~TypeRule() {} - TypeRule::TypeRule(const TypeRule& other) -@@ -51,7 +59,7 @@ - } - - static const char* typeNames[] = -- { "ascii", "string", "address", "byte", "short", "long" }; -+ { "ascii", "asciiesc", "string", "address", "byte", "short", "long" }; - static const char* opNames[] = - { "", "=", "!=", "<", "<=", ">", ">=", "&", "^", "!" }; - static const char* resultNames[] = { "tiff", "postscript", "error" }; -@@ -68,7 +76,7 @@ - ); - if (type == STRING) - printf(" \"%s\"", value.s); -- else if (type != ASCII) { -+ else if (type != ASCII && type != ASCIIESC) { - if (op == ANY) - printf(" "); - else -@@ -86,6 +94,7 @@ - const u_char* cp = (const u_char*) data; - switch (type) { - case ASCII: -+ { - u_int i; - for (i = 0; i < size; i++) - if (!isprint(cp[i]) && !isspace(cp[i])) { -@@ -95,6 +104,19 @@ - } - ok = true; - goto done; -+ } -+ case ASCIIESC: -+ { -+ u_int i; -+ for (i = 0; i < size; i++) -+ if (!isprint(cp[i]) && !isspace(cp[i]) && cp[i] != '\033') { -+ if (verbose) -+ printf("failed (unprintable char %#x)\n", cp[i]); -+ return (FALSE); -+ } -+ ok = TRUE; -+ goto done; -+ } - case STRING: - ok = (strncmp((const char*)(cp+off), value.s, - fxmin((u_int) strlen(value.s), (u_int)(size-off))) == 0); -@@ -311,6 +333,8 @@ - rule.type = TypeRule::STRING; - else if (strncasecmp(tp, "ascii", cp-tp) == 0) - rule.type = TypeRule::ASCII; -+ else if (strncasecmp(tp, "asciiesc", cp-tp) == 0) -+ rule.type = TypeRule::ASCIIESC; - else if (strncasecmp(tp, "addr", cp-tp) == 0) - rule.type = TypeRule::ADDR; - else { -@@ -321,7 +345,8 @@ - cp++; - rule.op = TypeRule::EQ; // default is '=' - const char* vp = cp; -- if (rule.type != TypeRule::STRING && rule.type != TypeRule::ASCII) { -+ if (rule.type != TypeRule::STRING && rule.type != TypeRule::ASCII -+ && rule.type != TypeRule::ASCIIESC) { - // numeric value - switch (*vp) { - case '=': rule.op = TypeRule::EQ; cp++; break; diff --git a/comms/hylafax/patches/patch-ap b/comms/hylafax/patches/patch-ap deleted file mode 100644 index 68eb9a8d664..00000000000 --- a/comms/hylafax/patches/patch-ap +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-ap,v 1.5 2001/04/23 15:06:19 abs Exp $ - ---- util/TypeRules.h.orig Sun Jun 13 08:41:26 1999 -+++ util/TypeRules.h -@@ -130,6 +130,7 @@ - bool cont; // continuation - enum { - ASCII, // ascii-only string -+ ASCIIESC, // ascii-only string + escape char (iso-2022 variants) - STRING, // byte string - ADDR, // address of match - BYTE, // 8 bits diff --git a/comms/hylafax/patches/patch-ar b/comms/hylafax/patches/patch-ar deleted file mode 100644 index f4b1af51b5a..00000000000 --- a/comms/hylafax/patches/patch-ar +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-ar,v 1.5 2001/07/08 13:32:15 bad Exp $ - ---- util/typerules.orig Sun Apr 15 06:58:06 2001 -+++ util/typerules Sun Jul 8 00:48:02 2001 -@@ -134,6 +134,11 @@ - >15 string ascii ps %F/textfmt -B -f Courier-Bold\ - -Ml=0.4in -p 11 -s %s >%o <%i - # -+# Japanization (should help other iso-2022 variants too) -+# -+#>15 string asciiesc ps a2ps-j -l '' -p -ns -nt <%i >%o -+#0 asciiesc x ps a2ps-j -l '' -p -ns -nt <%i >%o -+# - # This causes anything else with ascii-only data to be treated as text. - # - 0 ascii x ps %F/textfmt -B -f Courier-Bold\ -- cgit v1.2.3