From: Andrew Tefft (teffta@engr.dnet.ge.com)
Date: 07/08/93


From: Andrew Tefft <teffta@engr.dnet.ge.com>
Subject: [solution] serial printing with net-2
Date: 8 Jul 1993 21:13:50 -0400

There is a small bug in the net-2 lpd source related to serial printing.
This caused the flags not to be set up correctly, screwing up the serial
port settings completely, with no reasonable setting of the flags
ever working :-)

Anyway I do not know who to send this to, but since it's only a one-line
change, here's the patch. Apply it in your .../lpd/lpd directory where
your net-2 lpd source is. Can someone forward this to the correct person
as well?

P.S. I will be writing up a serial-special section for the printing
FAQ. Setting up the flags is non-obvious until you know where to look.

(patch follows...

*** printjob.c Thu Jul 8 20:56:59 1993
--- printjob.c~ Sat Feb 27 09:07:01 1993
***************
*** 1271,1277 ****
        }
  #ifdef LINUX
        ttybuf.c_cflag &= ~FC; /* not quite right! */
! ttybuf.c_cflag |= FS; /* not quite right! */
  #else
        ttybuf.sg_flags &= ~FC;
        ttybuf.sg_flags |= FS;
--- 1271,1277 ----
        }
  #ifdef LINUX
        ttybuf.c_cflag &= ~FC; /* not quite right! */
! ttybuf.c_cflag |= ~FS; /* not quite right! */
  #else
        ttybuf.sg_flags &= ~FC;
        ttybuf.sg_flags |= FS;

... end of patch)