This patch prepared by Julian Stacey X To: flexfax-announce@cthulhu.engr.sgi.com X Subject: HylaFAX Version 3.0 released X Reply-To: Sam Leffler X Date: Sat, 15 Apr 1995 20:11:20 +0200 X From: Sam Leffler X Sender: owner-flexfax@sgi.com X X HylaFAX Version 3.0 (patch level 0) is now available for public ftp at: X X ftp://ftp.sgi.com/sgi/fax/source/hylafax-v3.0pl0-tar.gz X X For information on this distribution consult the online materials at: X X http://www.vix.com/hylafax/ X X In particular, follow the link on the home page to locate ftp sites X that have binary distributions of HylaFAX 3.0. X X Anyone running a v3.0beta distribution should update their software. X X The following problems are known to exist in the released version; X fixes are enclosed below. A patch distribution will be made in a few X weeks after there's been time to accumulate more bugs and fixes. X X o the prototype config file for the Everex 24/96D modem should disable X use of 2D-encoded data because some users have experienced problems X receiving 2D-encoded facsimile (YMMV) X o the Class 2.0 prototype config file for USR modems is not selected X by faxaddmodem for xonxoff and default flow control schemes X o the configure script does not properly handle IRIX 6.x systems X o faxmail can generate invalid PostScript on some systems X o the sequence number for submitted jobs jumps from 999 to 9990 X o programs that access the page size database can dump core if the X file is inaccessible X X When sending bug reports and questions to flexfax@sgi.com please refer X to this distribution as v3.0pl0. X X Sam X X [To apply this patch: uudecode; gunzip patch.gz; sh patch] X X begin 644 patch.gz X M'XL(`,P`D"\``ZU6>V_:2!#_._X44XH:H("]?A`P"5)*0M-36W*0JB?=G:K% X M7H=5C9=Z;1):];O?K&T20UY]G(77>#SSF]EY[O-GH,]XI,NY=C$^/VIK6L`C X M_Q6/:+RNU;5O&N#U9C0]GY\<=8'7VA[D#"90.L:JERO$GCQ X M`F*6I'&4"?@B8MD?YLT%5$8TH2&P.!:Q"\F<2Y!S%H8@O9@O$Q3\DO*82:B: X M[4HN=LT3(-KWDEFPI(DWA\I;&N/+1QJ&^[*@+6-Q&=-%1=/.U?O-!G+E&0VJ X MQ,VA+A_.AZUBGM?(Q[1#N$Y X M5,\8]1EN1D]EK"^96(9,EW2A!_1:;^L%TF0XW4)KKH"T30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19']?XQ]981%'<-2Q?B5VC^CHE=NP:;F&X=J]G39L6I28 X @MO)3X(5"LEJPK&?'%IQO1A&D\I>RM_X#XQT'3'X.``"P X ` X end X ------------ *** configure Sun Apr 9 02:58:17 1995 --- configure Sun May 21 19:23:32 1995 *************** *** 1135,1140 **** --- 1135,1141 ---- test "$CONFIG_OPENFIFO" || { case $TARGET in *-irix5.[23]*) CONFIG_OPENFIFO=O_RDWR;; + *-irix6.*) CONFIG_OPENFIFO=O_RDWR;; *-ultrix*) CONFIG_OPENFIFO=O_RDWR;; *-sco*|*-isc*) CONFIG_OPENFIFO=O_RDWR;; *-aix*|*-hpux*) CONFIG_OPENFIFO=O_RDWR;; *************** *** 1397,1403 **** CheckForMMAP() { ! cat>t.c< --- 1398,1413 ---- CheckForMMAP() { ! if CheckForFunc getpagesize; then ! cat>t.c< ! #include ! #include ! EOF ! else ! cat>t.c< *************** *** 1429,1444 **** # endif # endif #endif ! #ifdef __osf__ # define valloc malloc #endif - - #ifdef __cplusplus - extern "C" { void *valloc(unsigned), *malloc(unsigned); } - #else char *valloc(), *malloc(); - #endif int main() --- 1439,1451 ---- # endif # endif #endif ! EOF ! fi ! cat>>t.c</dev/null 2>&1; then DSOSUF=so DSOOPTS='-shared -rdata_shared -check_registry ${SRCDIR}/${PORT}/irix/so_locations -quickstart_info' --- 1984,1990 ---- Note "Checking for Dynamic Shared Object (DSO) support." if [ "$DSO" = auto ]; then case $TARGET in ! *-irix*) if (findApp rld /lib:/usr/lib:$PATH) >/dev/null 2>&1; then DSOSUF=so DSOOPTS='-shared -rdata_shared -check_registry ${SRCDIR}/${PORT}/irix/so_locations -quickstart_info' *** config/everex-2496d Sun Apr 9 02:58:29 1995 --- config/everex-2496d Sun May 21 19:23:30 1995 *************** *** 61,63 **** --- 61,68 ---- # for the modem to grok # Class2CQCmd: "AT+FCQ=1\nAT+FBADMUL=20\nAT+FBADLIN=10" + # + # Disable 2D-encoded data 'cuz some PROM versions appear + # to receive bad data (if you figure out why, then remove this). + # + Class2DCCQueryCmd: !(0,1),(0-3),(0-2),(0-2),(0),(0),(0),(0-7) *** config/usr-2.0 Sun Apr 9 02:58:43 1995 --- config/usr-2.0 Sun May 21 19:23:31 1995 *************** *** 32,38 **** # # RTS/CTS flow control is used default. # ! # CONFIG: CLASS2.0: USRobotics*-RTSCTS # # BEGIN-SERVER # END-SERVER --- 32,38 ---- # # RTS/CTS flow control is used default. # ! # CONFIG: CLASS2.0: USRobotics*-* # # BEGIN-SERVER # END-SERVER *** util/PageSize.c++ Sun Apr 9 02:59:05 1995 --- util/PageSize.c++ Sun May 21 19:23:35 1995 *************** *** 121,126 **** --- 121,127 ---- pi.abbr = strdup(pi.abbr); info->append(pi); } + fclose(fp); } else { fprintf(stderr, "Warning, no page size database file \"%s\", using builtin default.\n", *************** *** 137,143 **** pi.left = 345; info->append(pi); } - fclose(fp); return info; } --- 138,143 ---- *** faxmail/faxmail.c++ Sun Apr 9 03:00:50 1995 --- faxmail/faxmail.c++ Sun May 21 19:23:33 1995 *************** *** 145,162 **** faxMailApp::faxMailApp() { ! bold.name = "Helvetica-Bold"; ! italic.name = "Helvetica-Oblique"; ! defBodyFont = "Courier-Bold"; ! body.name = defBodyFont; doBodyFont = TRUE; - useISO8859 = TRUE; wrapLines = TRUE; ! pagefactor = 1; ! pointsize = 12.; // medium size xMargin = .35; // .35" works ok with 12 point font yMargin = .5; // .5" top+bottom margins ! pageno = 0; // 1 input page per output page } faxMailApp::~faxMailApp() --- 145,168 ---- faxMailApp::faxMailApp() { ! pagefactor = 1; ! row = col = 0; ! pageno = 0; // 1 input page per output page ! ! lastHeaderShown = FALSE; doBodyFont = TRUE; wrapLines = TRUE; ! startNewPage = TRUE; ! useISO8859 = TRUE; ! xMargin = .35; // .35" works ok with 12 point font yMargin = .5; // .5" top+bottom margins ! ! pointsize = 12.; // medium size ! bold.name = "Helvetica-Bold"; ! italic.name = "Helvetica-Oblique"; ! defBodyFont = "Courier-Bold"; ! body.name = defBodyFont; } faxMailApp::~faxMailApp() *** recvfax/submit.c Sun Apr 9 03:01:32 1995 --- recvfax/submit.c Sun May 21 19:23:34 1995 *************** *** 539,545 **** getSequenceNumber(const char* filename, u_int count, const char* kind) { u_int seqnum; ! int fd; fd = open(filename, O_CREAT|O_RDWR, 0644); if (fd < 0) { --- 539,545 ---- getSequenceNumber(const char* filename, u_int count, const char* kind) { u_int seqnum; ! int n, fd; fd = open(filename, O_CREAT|O_RDWR, 0644); if (fd < 0) { *************** *** 549,556 **** } flock(fd, LOCK_EX); seqnum = 1; ! if (read(fd, line, sizeof (line)) > 0) seqnum = atoi(line); if (seqnum < 1 || seqnum >= MAXSEQNUM) { syslog(LOG_WARNING, "Invalid %s number %u, resetting to 1.", kind, seqnum); --- 549,558 ---- } flock(fd, LOCK_EX); seqnum = 1; ! if ((n = read(fd, line, sizeof (line))) > 0) { ! line[n] = '\0'; seqnum = atoi(line); + } if (seqnum < 1 || seqnum >= MAXSEQNUM) { syslog(LOG_WARNING, "Invalid %s number %u, resetting to 1.", kind, seqnum);