Fix ``lp=port@machine'' syntax and mention it in printcap(5).

This commit is contained in:
Brian Somers 1998-08-21 18:08:46 +00:00
parent ea9c501856
commit b538df1666
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38470
2 changed files with 14 additions and 3 deletions

View File

@ -43,7 +43,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95";
*/
static const char rcsid[] =
"$Id$";
"$Id: printjob.c,v 1.18 1997/12/02 20:45:58 wollman Exp $";
#endif /* not lint */
@ -1462,7 +1462,7 @@ opennet(pp)
void (*savealrm)(int);
port = strtoul(pp->lp, &ep, 0);
if (*ep != ':' || port > 65536) {
if (*ep != '@' || port > 65535) {
syslog(LOG_ERR, "%s: bad port number: %s", pp->printer,
pp->lp);
exit(1);

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)printcap.5 8.2 (Berkeley) 12/11/93
.\" $Id: printcap.5,v 1.13 1997/12/02 21:41:40 wollman Exp $
.\" $Id: printcap.5,v 1.14 1998/06/10 12:34:26 phk Exp $
.\"
.Dd December 11, 1993
.Dt PRINTCAP 5
@ -317,6 +317,17 @@ Any input filtering via
will therefore happen before
.Xr pr 1
is executed rather than afterwards.
.Pp
If
.Cm lp
is specified as
.Em port Ns No @ Ns Em machine
(and
.Cm rm
is not in use), printing will be send directly to the given
.Em port
on the given
.Em machine .
.Sh LOGGING
Error messages generated by the line printer programs themselves
(that is, the