Subject: Re: CAP lwsrv8 problems
To: None <nriley@tiac.net>
From: Taras Ivanenko <ivanenko@ctpa03.mit.edu>
List: port-mac68k
Date: 01/10/1997 11:09:57
I have the file simple.c changed in my distribution (I was playing
with CAP long, long ago). Try adding this diff, maybe it will help.
I had also a problem that lpr deleted file before printing, try some
switch to save temp files.
Taras Ivanenko.
diff -c /source/cap/cap60/applications/lwsrv/simple.c\~ /source/cap/cap60/applications/lwsrv/simple.c
*** /source/cap/cap60/applications/lwsrv/simple.c~ Fri Dec 30 14:39:20 1994
--- /source/cap/cap60/applications/lwsrv/simple.c Fri Apr 21 22:32:43 1995
***************
*** 624,630 ****
if (pop() != TOK_BEGINR)
fprintf(stderr,"lwsrv: simple: Stack Frame error on TOK_BEGINR/ENDR\n");
echo = TRUE; /* we are now echoing */
! p_write(pf,ts,strlen(ts),FALSE);
break;
#ifdef PROCSET_PATCH
case TOK_PATCH:
--- 624,632 ----
if (pop() != TOK_BEGINR)
fprintf(stderr,"lwsrv: simple: Stack Frame error on TOK_BEGINR/ENDR\n");
echo = TRUE; /* we are now echoing */
! sprintf(tmpstr, "%s\n", ts);
! p_write(pf,tmpstr,strlen(tmpstr),FALSE);
! /* p_write(pf,ts,strlen(ts),FALSE);*/
break;
#ifdef PROCSET_PATCH
case TOK_PATCH: