Patch #: 40 Type: bug fix Priority: low Affects: sites using AUFS drop folders, sites using lwpr Submitted: William J. Sproule, Jr Archived: munnari.OZ.AU mac/cap.patches/cap60.patch040 Application: 'cd cap60; patch -p < cap60.patches/cap60.patch040' Summary: set up proper FLOWQ values for an ImageWriter Summary: check return value of EC_Fetch() File: cap60/samples/lwpr.c File: cap60/applications/aufs/afposenum.c *** applications/aufs/afposenum.c.orig Thu Mar 14 17:21:24 1991 --- applications/aufs/afposenum.c Sat Jul 27 23:14:18 1991 *************** *** 1,7 **** /* ! * $Author: djh $ $Date: 91/03/14 16:20:40 $ ! * $Header: afposenum.c,v 2.3 91/03/14 16:20:40 djh Exp $ ! * $Revision: 2.3 $ */ /* --- 1,7 ---- /* ! * $Author: djh $ $Date: 1991/07/27 13:13:55 $ ! * $Header: /mac/src/cap60/applications/aufs/RCS/afposenum.c,v 2.4 1991/07/27 13:13:55 djh Rel djh $ ! * $Revision: 2.4 $ */ /* *************** *** 932,938 **** EnumCE *ec; int i,index; ec = EC_Fetch(dirid); ! index = searchn(name,ec,type); if (index == -1) { if (strcmp (name, dirid->name) == 0) /*then it is a directory*/ printf("wasn't found and it is a directory\n"); --- 932,941 ---- EnumCE *ec; int i,index; ec = EC_Fetch(dirid); ! if (ec <= 0) ! index = -1; ! else ! index = searchn(name,ec,type); if (index == -1) { if (strcmp (name, dirid->name) == 0) /*then it is a directory*/ printf("wasn't found and it is a directory\n"); *** samples/lwpr.c.orig Thu Feb 28 23:44:08 1991 --- samples/lwpr.c Sat Jul 27 23:16:19 1991 *************** *** 1,6 **** ! static char rcsid[] = "$Author: djh $ $Date: 91/02/15 23:04:19 $"; ! static char rcsident[] = "$Header: lwpr.c,v 2.1 91/02/15 23:04:19 djh Rel $"; ! static char revision[] = "$Revision: 2.1 $"; /* * lwpr - UNIX AppleTalk test program: print a ps file to appletalk LaserWriter --- 1,6 ---- ! static char rcsid[] = "$Author: djh $ $Date: 1991/07/27 13:15:54 $"; ! static char rcsident[] = "$Header: /mac/src/cap60/samples/RCS/lwpr.c,v 2.2 1991/07/27 13:15:54 djh Rel djh $"; ! static char revision[] = "$Revision: 2.2 $"; /* * lwpr - UNIX AppleTalk test program: print a ps file to appletalk LaserWriter *************** *** 45,54 **** char *fname ; int cno; int pid; ! #define RFLOWQ 8 #define BUFMAX 512*RFLOWQ #ifndef SFLOWQ # define SFLOWQ 8 #endif #define SBUFMAX 512*SFLOWQ char buf[SBUFMAX+10]; --- 45,62 ---- char *fname ; int cno; int pid; ! #ifdef IMAGEWRITER ! # define RFLOWQ 1 ! #else IMAGEWRITER ! # define RFLOWQ 8 ! #endif IMAGEWRITER #define BUFMAX 512*RFLOWQ #ifndef SFLOWQ + #ifdef IMAGEWRITER + # define SFLOWQ 1 + #else IMAGEWRITER # define SFLOWQ 8 + #endif IMAGEWRITER #endif #define SBUFMAX 512*SFLOWQ char buf[SBUFMAX+10]; *** README.orig Sat Jul 27 23:17:14 1991 --- README Sat Jul 27 23:17:25 1991 *************** *** 3,9 **** (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 39, July 1991 Introduction ------------ --- 3,9 ---- (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 40, July 1991 Introduction ------------