Patch #: 81 Type: bug fix Priority: low Affects: sites using CAPPRINTERS environment variable for papif Reported: Dominique Marcadet Reported: John J. Chew, II Archived: munnari.OZ.AU mac/cap.patches/cap60.patch081 Application: 'cd cap60; patch -p < cap60.patches/cap60.patch081' Summary: fix test for access() success File: cap60/applications/papif/papif.c *** applications/papif/papif.c.orig Sat Aug 31 19:29:40 1991 --- applications/papif/papif.c Sun Feb 16 14:17:45 1992 *************** *** 1,6 **** ! static char rcsid[] = "$Author: djh $ $Date: 1991/08/31 09:29:30 $"; ! static char rcsident[] = "$Header: /mac/src/cap60/applications/papif/RCS/papif.c,v 2.5 1991/08/31 09:29:30 djh Rel djh $"; ! static char revision[] = "$Revision: 2.5 $"; /* * papif - UNIX AppleTalk test program: simple line printer input filter --- 1,6 ---- ! static char rcsid[] = "$Author: djh $ $Date: 1992/02/16 03:17:32 $"; ! static char rcsident[] = "$Header: /mac/src/cap60/applications/papif/RCS/papif.c,v 2.6 1992/02/16 03:17:32 djh Rel djh $"; ! static char revision[] = "$Revision: 2.6 $"; /* * papif - UNIX AppleTalk test program: simple line printer input filter *************** *** 330,336 **** strip_control_d = getbval(v); if ((v = getenv("CAPPRINTERS"))) /* papif specific */ if ( *v != '\0') ! if (access(v, R_OK)) capprinters = v; else log_w("papif: user specified cap.printers: %s not found, ignoring\n",v); --- 330,336 ---- strip_control_d = getbval(v); if ((v = getenv("CAPPRINTERS"))) /* papif specific */ if ( *v != '\0') ! if (access(v, R_OK) == 0) capprinters = v; else log_w("papif: user specified cap.printers: %s not found, ignoring\n",v); *** README.orig Sun Feb 16 14:18:04 1992 --- README Sun Feb 16 14:18:28 1992 *************** *** 3,9 **** (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 80, February 1992 Introduction ------------ --- 3,9 ---- (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 81, February 1992 Introduction ------------